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: 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_10_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_10_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.001723/0.001723, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001921/0.001921, allocations: 197.2 kB / 16.26 MB, free: 6.629 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.541/1.541, allocations: 222.9 MB / 239.9 MB, free: 4.41 MB / 190.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.93/2.93, allocations: 437 MB / 0.7101 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 63.84 kB / 0.8687 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7666/0.7686, allocations: 151.6 MB / 1.017 GB, free: 2.746 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004544/0.7732, allocations: 2.376 MB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001434/0.7746, allocations: 0.7639 MB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.403e-05/0.7747, allocations: 11.88 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006232/0.7754, allocations: 139.5 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001857/0.7756, allocations: 59.67 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001604/0.7757, allocations: 39.95 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002412/0.776, allocations: 163.5 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000291/0.7763, allocations: 109 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.7764, allocations: 63.77 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001507/0.7766, allocations: 75.67 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.7766, allocations: 8 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.7767, allocations: 51.89 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.691e-05/0.7768, allocations: 35.91 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.051e-05/0.7769, allocations: 67.67 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002518/0.7771, allocations: 181.2 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.7772, allocations: 0 / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.139e-05/0.7772, allocations: 0 / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.882e-06/0.7772, allocations: 0 / 1.021 GB, free: 14.6 MB / 0.7794 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.0009781/0.7782, allocations: 498.5 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.7782, allocations: 8.031 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002089/0.7784, allocations: 24.73 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.7788, allocations: 204.1 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.693e-05/0.7789, allocations: 42.45 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.735e-05/0.7789, allocations: 20.06 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003251/0.7792, allocations: 151.1 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.7793, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.7793, allocations: 4 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.626e-05/0.7793, allocations: 11.98 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002041/0.7795, allocations: 83.89 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009428/0.7805, allocations: 0.6441 MB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.7807, allocations: 62.59 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.412e-05/0.7808, allocations: 24.86 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.7808, allocations: 0 / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/0.7811, allocations: 150.7 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.7811, allocations: 0 / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004133/0.7815, allocations: 163.4 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.564e-05/0.7816, allocations: 132.5 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.7818, allocations: 190.7 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.7819, allocations: 25.7 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.782, allocations: 135.9 kB / 1.023 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.1e-05/0.782, allocations: 31.58 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.51e-05/0.7821, allocations: 33.72 kB / 1.023 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.7823, allocations: 326.8 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.59e-05/0.7824, allocations: 43.91 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.7825, allocations: 104.9 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000357/0.7829, allocations: 234.4 kB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.7829, allocations: 0 / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004233/0.7833, allocations: 244.6 kB / 1.024 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.171e-05/0.7834, allocations: 63.7 kB / 1.024 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.7834, allocations: 7.938 kB / 1.024 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.7834, allocations: 4 kB / 1.024 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.7836, allocations: 31.92 kB / 1.024 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.7836, allocations: 4 kB / 1.024 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.7837, allocations: 27.83 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.7838, allocations: 4 kB / 1.024 GB, free: 10.51 MB / 0.7794 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.0001703/0.7839, allocations: 167.5 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.878e-05/0.784, allocations: 19.81 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.093e-05/0.784, allocations: 25.28 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.784, allocations: 3.984 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.784, allocations: 0 / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.784, allocations: 0 / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001937/0.7842, allocations: 205.6 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.7842, allocations: 4 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.04e-05/0.7843, allocations: 11.98 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.7843, allocations: 0 / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.7844, allocations: 3.938 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.7844, allocations: 7.938 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.7844, allocations: 3.938 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00038/0.7848, allocations: 210.7 kB / 1.025 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.559e-05/0.7848, allocations: 100.9 kB / 1.025 GB, free: 9.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.7849, allocations: 3.938 kB / 1.025 GB, free: 9.656 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.523e-05/0.785, allocations: 8 kB / 1.025 GB, free: 9.648 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.342e-05/0.785, allocations: 16.05 kB / 1.025 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.7851, allocations: 4 kB / 1.025 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001361/0.7852, allocations: 132.3 kB / 1.025 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7852, allocations: 0 / 1.025 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002429/0.7855, allocations: 24 kB / 1.025 GB, free: 9.477 MB / 0.7794 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.0001155/0.7856, allocations: 103.2 kB / 1.025 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003587/0.7859, allocations: 227.2 kB / 1.026 GB, free: 9.117 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.786, allocations: 0 / 1.026 GB, free: 9.117 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001495/0.7861, allocations: 107.3 kB / 1.026 GB, free: 9 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.7864, allocations: 19.97 kB / 1.026 GB, free: 8.98 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006389/0.787, allocations: 322.1 kB / 1.026 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004074/0.7874, allocations: 0.7197 MB / 1.027 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.568e-05/0.7875, allocations: 20.81 kB / 1.027 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.7876, allocations: 15.44 kB / 1.027 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of SimCode: time 3.3e-07/0.7876, allocations: 0 / 1.027 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of Templates: time 0.004487/0.7921, allocations: 1.32 MB / 1.028 GB, free: 6.559 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (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 & ./Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches