Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_9_Buildings.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.000791/0.000791, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005363/0.005363, allocations: 170 kB / 16.26 MB, free: 6.68 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.406/1.406, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.483/2.483, allocations: 390.9 MB / 0.6663 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.0003861, allocations: 12 kB / 0.8159 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8204/0.8208, allocations: 142.4 MB / 0.955 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002564/0.8235, allocations: 2.015 MB / 0.957 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001401/0.8249, allocations: 0.7609 MB / 0.9577 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.825, allocations: 1.25 kB / 0.9577 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.8252, allocations: 17.36 kB / 0.9577 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002933/0.8255, allocations: 64.3 kB / 0.9578 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.8257, allocations: 51.47 kB / 0.9579 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002748/0.826, allocations: 189 kB / 0.958 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003307/0.8263, allocations: 203 kB / 0.9582 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.8265, allocations: 59.92 kB / 0.9583 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.8267, allocations: 68.78 kB / 0.9584 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.8267, allocations: 5.406 kB / 0.9584 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001551/0.8268, allocations: 60.58 kB / 0.9584 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.925e-05/0.8269, allocations: 39.34 kB / 0.9585 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.064e-05/0.827, allocations: 75.69 kB / 0.9585 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002565/0.8273, allocations: 168.5 kB / 0.9587 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.8273, allocations: 4 kB / 0.9587 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.783e-06/0.8273, allocations: 0 / 0.9587 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.8273, allocations: 0 / 0.9587 GB, free: 4.859 MB / 0.7169 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.0007493/0.8281, allocations: 467.8 kB / 0.9591 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.8281, allocations: 9.625 kB / 0.9591 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002687/0.8284, allocations: 34.42 kB / 0.9592 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/0.8287, allocations: 206 kB / 0.9594 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.034e-05/0.8288, allocations: 41.33 kB / 0.9594 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.497e-05/0.8288, allocations: 15 kB / 0.9594 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.8291, allocations: 153.5 kB / 0.9596 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.8291, allocations: 4 kB / 0.9596 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.346e-05/0.8292, allocations: 2.75 kB / 0.9596 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.35e-05/0.8292, allocations: 4.125 kB / 0.9596 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002018/0.8294, allocations: 96.58 kB / 0.9597 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007903/0.8302, allocations: 0.6428 MB / 0.9603 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.8304, allocations: 59.67 kB / 0.9604 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.87e-05/0.8305, allocations: 31.91 kB / 0.9604 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.8306, allocations: 0 / 0.9604 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001916/0.8308, allocations: 153.3 kB / 0.9605 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.8308, allocations: 1 kB / 0.9605 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003884/0.8312, allocations: 162.4 kB / 0.9607 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.8312, allocations: 135.5 kB / 0.9608 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00016/0.8314, allocations: 196 kB / 0.961 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.8314, allocations: 26.67 kB / 0.961 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.156e-05/0.8315, allocations: 133.2 kB / 0.9612 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.828e-05/0.8315, allocations: 22.83 kB / 0.9612 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.624e-05/0.8316, allocations: 23.91 kB / 0.9612 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.678e-05/0.8317, allocations: 326.1 kB / 0.9615 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.8318, allocations: 38.27 kB / 0.9616 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.8319, allocations: 118.4 kB / 0.9617 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.8322, allocations: 235.8 kB / 0.9619 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.8322, allocations: 1.375 kB / 0.9619 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003632/0.8326, allocations: 246.7 kB / 0.9621 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.234e-05/0.8326, allocations: 62.88 kB / 0.9622 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.8326, allocations: 10.94 kB / 0.9622 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.8327, allocations: 3.375 kB / 0.9622 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.8328, allocations: 32.2 kB / 0.9622 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.8328, allocations: 3.094 kB / 0.9622 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.833, allocations: 34.52 kB / 0.9623 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.833, allocations: 11.31 kB / 0.9623 GB, free: 1.504 MB / 0.7169 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.0001357/0.8331, allocations: 167.2 kB / 0.9624 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.963e-05/0.8332, allocations: 10.94 kB / 0.9625 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.826e-05/0.8332, allocations: 21.02 kB / 0.9625 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.8332, allocations: 5.094 kB / 0.9625 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.8332, allocations: 0 / 0.9625 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.8333, allocations: 0.9375 kB / 0.9625 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001647/0.8334, allocations: 213.6 kB / 0.9627 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.8334, allocations: 0.9688 kB / 0.9627 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.325e-05/0.8335, allocations: 9.312 kB / 0.9627 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.8335, allocations: 0 / 0.9627 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.8336, allocations: 9.906 kB / 0.9627 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.8336, allocations: 1.125 kB / 0.9627 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.8336, allocations: 0 / 0.9627 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003935/0.834, allocations: 221.5 kB / 0.9629 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.754e-05/0.834, allocations: 92.78 kB / 0.963 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.904e-05/0.834, allocations: 10.19 kB / 0.963 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.18e-05/0.8341, allocations: 12.98 kB / 0.963 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.693e-05/0.8342, allocations: 8.281 kB / 0.963 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.8342, allocations: 1.906 kB / 0.963 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.038e-05/0.8343, allocations: 132 kB / 0.9632 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8343, allocations: 0 / 0.9632 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000246/0.8346, allocations: 35 kB / 0.9632 GB, free: 0.6836 MB / 0.7169 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.0001094/0.8347, allocations: 106.1 kB / 0.9633 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003201/0.835, allocations: 221.1 kB / 0.9635 GB, free: 424 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.835, allocations: 0 / 0.9635 GB, free: 424 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.8352, allocations: 108.7 kB / 0.9636 GB, free: 332 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.8354, allocations: 26.27 kB / 0.9636 GB, free: 316 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005639/0.836, allocations: 355.1 kB / 0.964 GB, free: 32 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.8363, allocations: 0.7177 MB / 0.9647 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.2e-05/0.8364, allocations: 18.8 kB / 0.9647 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.346e-05/0.8365, allocations: 12.5 kB / 0.9647 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of SimCode: time 4.81e-07/0.8365, allocations: 1.344 kB / 0.9647 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of Templates: time 0.004312/0.8408, allocations: 1.24 MB / 0.9659 GB, free: 14.68 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches