Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001817/0.001817, allocations: 222.9 kB / 23 MB, free: 4.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.548/1.548, allocations: 230.6 MB / 256.8 MB, free: 7.828 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.303/3.303, allocations: 0.4892 GB / 0.7951 GB, free: 35.66 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002068/0.002068, allocations: 67.23 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3625/0.3645, allocations: 176.1 MB / 1.326 GB, free: 1.891 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004888/0.3694, allocations: 2.313 MB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00189/0.3713, allocations: 0.8182 MB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.3715, allocations: 4 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0007573/0.3723, allocations: 147.4 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002799/0.3725, allocations: 67.61 kB / 1.33 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.3728, allocations: 67.8 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003069/0.3731, allocations: 163.4 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002852/0.3734, allocations: 85.06 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002235/0.3736, allocations: 71.77 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.3738, allocations: 71.61 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.259e-05/0.3738, allocations: 12 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.374, allocations: 47.89 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.062e-05/0.3741, allocations: 43.89 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.111e-05/0.3741, allocations: 55.73 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003454/0.3745, allocations: 179.3 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3745, allocations: 0 / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.844e-06/0.3745, allocations: 0 / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.444e-05/0.3745, allocations: 0 / 1.33 GB, free: 13.75 MB / 1.029 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.0008794/0.3754, allocations: 426.4 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.3754, allocations: 15.97 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000334/0.3758, allocations: 36.81 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.3761, allocations: 159.6 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-05/0.3762, allocations: 67.72 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.683e-05/0.3762, allocations: 15.98 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003428/0.3766, allocations: 173 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.3766, allocations: 7.938 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.3766, allocations: 4 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.617e-05/0.3766, allocations: 7.984 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002426/0.3769, allocations: 121.5 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009355/0.3778, allocations: 0.5542 MB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.3781, allocations: 80.27 kB / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.86e-05/0.3782, allocations: 54.61 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.3782, allocations: 0 / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.3785, allocations: 176.6 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.532e-06/0.3785, allocations: 0 / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004694/0.3789, allocations: 234.6 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.721e-05/0.379, allocations: 136.5 kB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.3792, allocations: 182.9 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.3792, allocations: 29.7 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.3794, allocations: 143.7 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.788e-05/0.3794, allocations: 19.8 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.272e-05/0.3795, allocations: 41.7 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3796, allocations: 322.8 kB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.3798, allocations: 95.38 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.38, allocations: 164.8 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.3803, allocations: 230.3 kB / 1.334 GB, free: 9.91 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3803, allocations: 0 / 1.334 GB, free: 9.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000448/0.3807, allocations: 312.1 kB / 1.334 GB, free: 9.574 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.179e-05/0.3808, allocations: 67.34 kB / 1.334 GB, free: 9.496 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.3808, allocations: 0 / 1.334 GB, free: 9.496 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.3808, allocations: 4 kB / 1.334 GB, free: 9.492 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.3809, allocations: 31.92 kB / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.381, allocations: 4.625 kB / 1.334 GB, free: 9.457 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001497/0.3811, allocations: 27.88 kB / 1.334 GB, free: 9.43 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.3811, allocations: 12 kB / 1.334 GB, free: 9.418 MB / 1.029 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.0001648/0.3813, allocations: 163.5 kB / 1.334 GB, free: 9.242 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.985e-05/0.3813, allocations: 19.84 kB / 1.334 GB, free: 9.223 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.999e-05/0.3814, allocations: 17.39 kB / 1.334 GB, free: 9.195 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.3814, allocations: 3.938 kB / 1.334 GB, free: 9.191 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3814, allocations: 0 / 1.334 GB, free: 9.191 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3814, allocations: 4 kB / 1.334 GB, free: 9.188 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001561/0.3815, allocations: 145.3 kB / 1.334 GB, free: 9.016 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3815, allocations: 0 / 1.334 GB, free: 9.016 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.53e-05/0.3816, allocations: 11.98 kB / 1.334 GB, free: 9.004 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.3816, allocations: 4 kB / 1.334 GB, free: 9 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.3816, allocations: 7.938 kB / 1.334 GB, free: 8.992 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.3817, allocations: 0 / 1.334 GB, free: 8.992 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3817, allocations: 0 / 1.334 GB, free: 8.992 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004744/0.3821, allocations: 286 kB / 1.335 GB, free: 8.676 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.971e-05/0.3822, allocations: 11.92 kB / 1.335 GB, free: 8.664 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.577e-05/0.3822, allocations: 11.94 kB / 1.335 GB, free: 8.652 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.594e-05/0.3823, allocations: 16.05 kB / 1.335 GB, free: 8.637 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.407e-05/0.3824, allocations: 4 kB / 1.335 GB, free: 8.633 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.3824, allocations: 7.984 kB / 1.335 GB, free: 8.625 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001205/0.3825, allocations: 124.3 kB / 1.335 GB, free: 8.504 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3825, allocations: 3.938 kB / 1.335 GB, free: 8.5 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002671/0.3828, allocations: 35.95 kB / 1.335 GB, free: 8.465 MB / 1.029 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.0001216/0.3829, allocations: 103.3 kB / 1.335 GB, free: 8.355 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000426/0.3833, allocations: 299.9 kB / 1.335 GB, free: 8.02 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3833, allocations: 0 / 1.335 GB, free: 8.02 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.3835, allocations: 125 kB / 1.335 GB, free: 7.879 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.3837, allocations: 22.03 kB / 1.335 GB, free: 7.859 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007318/0.3845, allocations: 361.9 kB / 1.336 GB, free: 7.465 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/0.3846, allocations: 102.8 kB / 1.336 GB, free: 7.34 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.299e-05/0.3846, allocations: 15.44 kB / 1.336 GB, free: 7.328 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.3846, allocations: 0 / 1.336 GB, free: 7.328 MB / 1.029 GB Notification: Performance of Templates: time 0.004467/0.3891, allocations: 1.767 MB / 1.338 GB, free: 5.566 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.871598290745169]