Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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: "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_10_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_10_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007712/0.007712, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.002121/0.002121, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.22/1.22, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.203/2.203, allocations: 437.1 MB / 0.7106 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 67.83 kB / 1.018 GB, free: 9.93 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5747/0.5763, allocations: 151.6 MB / 1.166 GB, free: 3.93 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003287/0.5796, allocations: 2.304 MB / 1.168 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001156/0.5808, allocations: 0.7868 MB / 1.169 GB, free: 0.8203 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.618e-05/0.5809, allocations: 4 kB / 1.169 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0004836/0.5814, allocations: 147.4 kB / 1.169 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001639/0.5816, allocations: 63.66 kB / 1.169 GB, free: 0.6094 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001409/0.5817, allocations: 55.81 kB / 1.169 GB, free: 0.5547 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.582, allocations: 155.5 kB / 1.17 GB, free: 412 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.5822, allocations: 98.3 kB / 1.17 GB, free: 312 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.5823, allocations: 71.7 kB / 1.17 GB, free: 240 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001384/0.5824, allocations: 67.73 kB / 1.17 GB, free: 172 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/0.5825, allocations: 16 kB / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.5826, allocations: 51.91 kB / 1.17 GB, free: 104 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.392e-05/0.5826, allocations: 43.83 kB / 1.17 GB, free: 60 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.739e-05/0.5827, allocations: 63.8 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.583, allocations: 167.4 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.583, allocations: 3.984 kB / 1.17 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.333e-06/0.583, allocations: 0 / 1.17 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.364e-06/0.583, allocations: 0 / 1.17 GB, free: 15.83 MB / 0.9044 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.0006382/0.5836, allocations: 0.4944 MB / 1.171 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.5837, allocations: 12.92 kB / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.752e-05/0.5837, allocations: 42.75 kB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.5839, allocations: 24.83 kB / 1.171 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002217/0.5841, allocations: 218.3 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.755e-05/0.5842, allocations: 42.44 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.889e-05/0.5842, allocations: 15.94 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002524/0.5845, allocations: 149.3 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.5845, allocations: 0 / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.5845, allocations: 4 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.5845, allocations: 8 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.5847, allocations: 87.88 kB / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007665/0.5855, allocations: 0.6403 MB / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001923/0.5857, allocations: 54.5 kB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.354e-05/0.5858, allocations: 32.91 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 9.478e-06/0.5858, allocations: 0 / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001852/0.586, allocations: 150.9 kB / 1.172 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.586, allocations: 0 / 1.172 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0003307/0.5863, allocations: 159.5 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.339e-05/0.5864, allocations: 140.5 kB / 1.172 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.5866, allocations: 179.1 kB / 1.173 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.5866, allocations: 29.7 kB / 1.173 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.729e-05/0.5867, allocations: 144 kB / 1.173 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.542e-05/0.5867, allocations: 19.91 kB / 1.173 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.519e-05/0.5868, allocations: 37.66 kB / 1.173 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.5869, allocations: 326.8 kB / 1.173 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.564e-05/0.587, allocations: 35.97 kB / 1.173 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.5872, allocations: 109.4 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002494/0.5874, allocations: 234.3 kB / 1.173 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.5874, allocations: 0 / 1.173 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003338/0.5878, allocations: 252.6 kB / 1.174 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/0.5878, allocations: 63.34 kB / 1.174 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.5878, allocations: 7.984 kB / 1.174 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.5879, allocations: 4 kB / 1.174 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.588, allocations: 31.92 kB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.588, allocations: 7.938 kB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.5881, allocations: 24.2 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.5881, allocations: 11.98 kB / 1.174 GB, free: 11.67 MB / 0.9044 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.0001302/0.5883, allocations: 171.5 kB / 1.174 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.819e-05/0.5883, allocations: 19.88 kB / 1.174 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.459e-05/0.5883, allocations: 17.34 kB / 1.174 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.5883, allocations: 0 / 1.174 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.5883, allocations: 0 / 1.174 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.5883, allocations: 0 / 1.174 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.5885, allocations: 213.5 kB / 1.174 GB, free: 11.19 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.5885, allocations: 0 / 1.174 GB, free: 11.19 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.995e-05/0.5886, allocations: 15.98 kB / 1.174 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.5886, allocations: 7.938 kB / 1.174 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.5886, allocations: 0 / 1.174 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.5886, allocations: 0 / 1.174 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5886, allocations: 4 kB / 1.174 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003421/0.589, allocations: 210.7 kB / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.093e-05/0.589, allocations: 89.02 kB / 1.174 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/0.5891, allocations: 12.03 kB / 1.175 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.794e-05/0.5892, allocations: 11.98 kB / 1.175 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.5892, allocations: 11.98 kB / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.5892, allocations: 3.938 kB / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001007/0.5893, allocations: 140.8 kB / 1.175 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5894, allocations: 0 / 1.175 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002083/0.5896, allocations: 24 kB / 1.175 GB, free: 10.63 MB / 0.9044 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.0006077/0.5902, allocations: 0.7585 MB / 1.175 GB, free: 9.836 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002803/0.5905, allocations: 214.6 kB / 1.176 GB, free: 9.602 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.5905, allocations: 4.688 kB / 1.176 GB, free: 9.598 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001184/0.5906, allocations: 107.4 kB / 1.176 GB, free: 9.48 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001893/0.5908, allocations: 19.94 kB / 1.176 GB, free: 9.461 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001982/0.5928, allocations: 1.955 MB / 1.178 GB, free: 7.348 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.5931, allocations: 0.7119 MB / 1.178 GB, free: 6.609 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.371e-05/0.5932, allocations: 20.62 kB / 1.178 GB, free: 6.586 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.444e-05/0.5932, allocations: 51.3 kB / 1.178 GB, free: 6.535 MB / 0.9044 GB Notification: Performance of SimCode: time 2.01e-07/0.5932, allocations: 0 / 1.178 GB, free: 6.535 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3722/0.9655, allocations: 3.128 MB / 1.181 GB, free: 3.523 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.373/9.339, allocations: 5.844 kB / 1.181 GB, free: 3.52 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches