Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 102.1 kB / 16.4 MB, free: 6.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001847/0.001847, allocations: 192.2 kB / 17.35 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002089/0.002089, allocations: 288.8 kB / 291.5 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9799/0.9799, allocations: 169.3 MB / 0.499 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001755/0.001755, allocations: 91.86 kB / 0.6821 GB, free: 6.941 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4061/0.4079, allocations: 86.97 MB / 0.767 GB, free: 3.75 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003534/0.4115, allocations: 2.304 MB / 0.7693 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001264/0.4128, allocations: 0.783 MB / 0.77 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.693e-05/0.4129, allocations: 4 kB / 0.77 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0005642/0.4135, allocations: 151.3 kB / 0.7702 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.4137, allocations: 63.61 kB / 0.7702 GB, free: 444 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001576/0.4138, allocations: 51.88 kB / 0.7703 GB, free: 392 kB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002441/0.4141, allocations: 167.4 kB / 0.7704 GB, free: 224 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002428/0.4143, allocations: 97.03 kB / 0.7705 GB, free: 128 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.4145, allocations: 59.78 kB / 0.7706 GB, free: 68 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001686/0.4146, allocations: 75.75 kB / 0.7707 GB, free: 15.99 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.64e-05/0.4147, allocations: 12 kB / 0.7707 GB, free: 15.98 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.4148, allocations: 59.8 kB / 0.7707 GB, free: 15.92 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.476e-05/0.4149, allocations: 39.84 kB / 0.7708 GB, free: 15.88 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 8.56e-05/0.4149, allocations: 63.67 kB / 0.7708 GB, free: 15.82 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002308/0.4152, allocations: 170 kB / 0.771 GB, free: 15.66 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.4152, allocations: 0 / 0.771 GB, free: 15.66 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.543e-06/0.4152, allocations: 0 / 0.771 GB, free: 15.66 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.758e-06/0.4152, allocations: 0 / 0.771 GB, free: 15.66 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006836/0.4159, allocations: 486.6 kB / 0.7715 GB, free: 15.12 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.4159, allocations: 16.03 kB / 0.7715 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000206/0.4162, allocations: 28.73 kB / 0.7715 GB, free: 15.08 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002456/0.4164, allocations: 212.1 kB / 0.7717 GB, free: 14.83 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.934e-05/0.4165, allocations: 38.44 kB / 0.7717 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/0.4165, allocations: 12.12 kB / 0.7718 GB, free: 14.78 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.4168, allocations: 142.2 kB / 0.7719 GB, free: 14.62 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.4168, allocations: 3.938 kB / 0.7719 GB, free: 14.62 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.4169, allocations: 12 kB / 0.7719 GB, free: 14.61 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.905e-05/0.4169, allocations: 8 kB / 0.7719 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.4171, allocations: 83.94 kB / 0.772 GB, free: 14.52 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008316/0.4179, allocations: 0.6441 MB / 0.7726 GB, free: 13.81 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/0.4182, allocations: 58.56 kB / 0.7727 GB, free: 13.75 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.436e-05/0.4182, allocations: 28.84 kB / 0.7727 GB, free: 13.71 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.449e-05/0.4183, allocations: 0 / 0.7727 GB, free: 13.71 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000191/0.4185, allocations: 138.8 kB / 0.7728 GB, free: 13.55 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.4185, allocations: 4 kB / 0.7728 GB, free: 13.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0003614/0.4189, allocations: 171.2 kB / 0.773 GB, free: 13.37 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.57e-05/0.4189, allocations: 128.5 kB / 0.7731 GB, free: 13.21 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.4191, allocations: 187.1 kB / 0.7733 GB, free: 13.02 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.4191, allocations: 29.7 kB / 0.7733 GB, free: 12.98 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.89e-05/0.4192, allocations: 147.6 kB / 0.7735 GB, free: 12.83 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.4193, allocations: 15.81 kB / 0.7735 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-05/0.4193, allocations: 45.61 kB / 0.7735 GB, free: 12.77 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.4194, allocations: 322.8 kB / 0.7738 GB, free: 12.44 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.271e-05/0.4195, allocations: 43.97 kB / 0.7739 GB, free: 12.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.4197, allocations: 103.9 kB / 0.774 GB, free: 12.27 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.4199, allocations: 242.3 kB / 0.7742 GB, free: 11.98 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.42, allocations: 0 / 0.7742 GB, free: 11.98 MB / 0.545 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00036/0.4203, allocations: 241 kB / 0.7744 GB, free: 11.72 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.586e-05/0.4204, allocations: 67.39 kB / 0.7745 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/0.4204, allocations: 3.938 kB / 0.7745 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.4204, allocations: 4 kB / 0.7745 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.4205, allocations: 31.92 kB / 0.7745 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.4206, allocations: 4 kB / 0.7745 GB, free: 11.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.4207, allocations: 31.73 kB / 0.7746 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.4207, allocations: 4 kB / 0.7746 GB, free: 11.57 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.4209, allocations: 175.1 kB / 0.7747 GB, free: 11.38 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.317e-05/0.4209, allocations: 11.91 kB / 0.7748 GB, free: 11.37 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.4209, allocations: 17.34 kB / 0.7748 GB, free: 11.35 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.4209, allocations: 0 / 0.7748 GB, free: 11.35 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.4209, allocations: 0 / 0.7748 GB, free: 11.35 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.421, allocations: 0 / 0.7748 GB, free: 11.35 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001703/0.4211, allocations: 213.6 kB / 0.775 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.4211, allocations: 4 kB / 0.775 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.973e-05/0.4212, allocations: 11.98 kB / 0.775 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.4212, allocations: 0 / 0.775 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.4213, allocations: 7.984 kB / 0.775 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.4213, allocations: 0 / 0.775 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.4213, allocations: 3.984 kB / 0.775 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000374/0.4216, allocations: 222.5 kB / 0.7752 GB, free: 10.82 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.385e-05/0.4217, allocations: 85.05 kB / 0.7753 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.4217, allocations: 3.938 kB / 0.7753 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.4218, allocations: 24.05 kB / 0.7753 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.318e-05/0.4219, allocations: 15.86 kB / 0.7753 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.836e-06/0.4219, allocations: 4 kB / 0.7753 GB, free: 10.68 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.854e-05/0.422, allocations: 131.2 kB / 0.7755 GB, free: 10.55 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/0.422, allocations: 0 / 0.7755 GB, free: 10.55 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002431/0.4223, allocations: 31.91 kB / 0.7755 GB, free: 10.52 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001061/0.4224, allocations: 106.3 kB / 0.7756 GB, free: 10.41 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003101/0.4227, allocations: 218.6 kB / 0.7758 GB, free: 10.17 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4227, allocations: 4 kB / 0.7758 GB, free: 10.16 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.4229, allocations: 103.4 kB / 0.7759 GB, free: 10.05 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.4231, allocations: 16 kB / 0.7759 GB, free: 10.04 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005638/0.4237, allocations: 320.7 kB / 0.7762 GB, free: 9.691 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.424, allocations: 0.7119 MB / 0.7769 GB, free: 8.953 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.343e-05/0.424, allocations: 15.44 kB / 0.7769 GB, free: 8.938 MB / 0.545 GB Notification: Performance of SimCode: time 2.5e-07/0.424, allocations: 0 / 0.7769 GB, free: 8.938 MB / 0.545 GB Notification: Performance of Templates: time 0.003301/0.4273, allocations: 1.708 MB / 0.7786 GB, free: 7.238 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)