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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009704/0.0009702, allocations: 92.08 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 175.4 kB / 16.92 MB, free: 6.652 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.429/1.429, allocations: 223.3 MB / 241 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.473/2.473, allocations: 390.9 MB / 0.667 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004133/0.0004137, allocations: 11.98 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6763/0.6767, allocations: 142.4 MB / 0.9557 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002456/0.6792, allocations: 2.009 MB / 0.9577 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001164/0.6804, allocations: 0.7556 MB / 0.9584 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.035e-05/0.6806, allocations: 5.531 kB / 0.9584 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001129/0.6807, allocations: 22.78 kB / 0.9584 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002229/0.6809, allocations: 55.23 kB / 0.9585 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001585/0.6811, allocations: 50.92 kB / 0.9585 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000201/0.6813, allocations: 189.6 kB / 0.9587 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000247/0.6815, allocations: 211.5 kB / 0.9589 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.6817, allocations: 56.47 kB / 0.959 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001518/0.6818, allocations: 71.64 kB / 0.959 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.109e-05/0.6819, allocations: 5.75 kB / 0.959 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001254/0.682, allocations: 56.3 kB / 0.9591 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.644e-05/0.6821, allocations: 35.41 kB / 0.9591 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.228e-05/0.6821, allocations: 83.5 kB / 0.9592 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001678/0.6823, allocations: 133 kB / 0.9593 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.6823, allocations: 0 / 0.9593 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.714e-06/0.6823, allocations: 1.25 kB / 0.9593 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.6823, allocations: 0 / 0.9593 GB, free: 4.879 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.0005899/0.6829, allocations: 463.2 kB / 0.9598 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.683, allocations: 8.688 kB / 0.9598 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002199/0.6832, allocations: 35.92 kB / 0.9598 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.6834, allocations: 212.6 kB / 0.96 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.625e-05/0.6835, allocations: 35.86 kB / 0.9601 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.6835, allocations: 15.94 kB / 0.9601 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.6838, allocations: 144.7 kB / 0.9602 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.6838, allocations: 0 / 0.9602 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.6838, allocations: 5.219 kB / 0.9602 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.6839, allocations: 8.594 kB / 0.9602 GB, free: 4 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.6841, allocations: 98.7 kB / 0.9603 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00072/0.6848, allocations: 0.6411 MB / 0.9609 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002156/0.685, allocations: 64.56 kB / 0.961 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.512e-05/0.6851, allocations: 34.59 kB / 0.961 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/0.6851, allocations: 1.375 kB / 0.961 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001722/0.6853, allocations: 146.8 kB / 0.9612 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.6853, allocations: 0 / 0.9612 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003459/0.6857, allocations: 170.7 kB / 0.9613 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.6857, allocations: 131.3 kB / 0.9615 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.6858, allocations: 192.1 kB / 0.9616 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.6859, allocations: 27.08 kB / 0.9617 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.72e-05/0.6859, allocations: 137.5 kB / 0.9618 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.6859, allocations: 22.39 kB / 0.9618 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.122e-05/0.686, allocations: 28.58 kB / 0.9619 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.74e-05/0.686, allocations: 321.6 kB / 0.9622 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.931e-05/0.6861, allocations: 45.97 kB / 0.9622 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.6863, allocations: 118.7 kB / 0.9623 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.6865, allocations: 235.2 kB / 0.9625 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.6865, allocations: 1.219 kB / 0.9625 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003278/0.6868, allocations: 241.8 kB / 0.9628 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.6869, allocations: 63.69 kB / 0.9628 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.6869, allocations: 6.219 kB / 0.9628 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.6869, allocations: 8.203 kB / 0.9628 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.687, allocations: 26.98 kB / 0.9629 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.687, allocations: 7.469 kB / 0.9629 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.6872, allocations: 30.59 kB / 0.9629 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.6872, allocations: 15.27 kB / 0.9629 GB, free: 1.523 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.0001029/0.6873, allocations: 162 kB / 0.9631 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.254e-05/0.6874, allocations: 14.7 kB / 0.9631 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.872e-05/0.6874, allocations: 21.25 kB / 0.9631 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.6874, allocations: 1 kB / 0.9631 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.6874, allocations: 0 / 0.9631 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.6874, allocations: 1.094 kB / 0.9631 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001372/0.6876, allocations: 213.6 kB / 0.9633 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.6876, allocations: 4.75 kB / 0.9633 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.86e-05/0.6876, allocations: 13.08 kB / 0.9633 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.6877, allocations: 0.875 kB / 0.9633 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.6877, allocations: 5.906 kB / 0.9633 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.6877, allocations: 0 / 0.9633 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.6877, allocations: 1.062 kB / 0.9633 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003585/0.6881, allocations: 221.4 kB / 0.9636 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.541e-05/0.6881, allocations: 87.89 kB / 0.9636 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.463e-05/0.6881, allocations: 6.688 kB / 0.9636 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.403e-05/0.6882, allocations: 13.58 kB / 0.9637 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.849e-05/0.6883, allocations: 19.56 kB / 0.9637 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-06/0.6883, allocations: 2.281 kB / 0.9637 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.252e-05/0.6884, allocations: 128.1 kB / 0.9638 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6884, allocations: 4.062 kB / 0.9638 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000261/0.6887, allocations: 34.97 kB / 0.9638 GB, free: 0.6992 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 8.993e-05/0.6888, allocations: 102.4 kB / 0.9639 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002879/0.6891, allocations: 221.1 kB / 0.9641 GB, free: 444 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.6891, allocations: 0 / 0.9641 GB, free: 444 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.6892, allocations: 112.1 kB / 0.9643 GB, free: 348 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000243/0.6895, allocations: 17.67 kB / 0.9643 GB, free: 340 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000541/0.69, allocations: 382.2 kB / 0.9646 GB, free: 24 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.6903, allocations: 0.7136 MB / 0.9653 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.874e-05/0.6904, allocations: 13.81 kB / 0.9653 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of SimCode: time 3.81e-07/0.6904, allocations: 4 kB / 0.9653 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of Templates: time 0.003564/0.694, allocations: 1.676 MB / 0.967 GB, free: 14.45 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches