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.001525/0.001525, allocations: 78.48 kB / 19.18 MB, free: 2.527 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.00164/0.00164, allocations: 169.5 kB / 22.46 MB, free: 5.359 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.6/1.6, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.123/3.123, allocations: 377.8 MB / 0.6221 GB, free: 12.55 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 0.9814 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.878e-05/4.083e-05, allocations: 8.75 kB / 0.9814 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.006345/0.006385, allocations: 2.301 MB / 0.9836 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002266/0.008651, allocations: 0.8219 MB / 0.9844 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.008787, allocations: 0 / 0.9844 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000898/0.009685, allocations: 143.3 kB / 0.9846 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003061/0.009991, allocations: 67.59 kB / 0.9846 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.01029, allocations: 75.66 kB / 0.9847 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003682/0.01066, allocations: 163.4 kB / 0.9849 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003498/0.01101, allocations: 81.03 kB / 0.9849 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003048/0.01132, allocations: 103.7 kB / 0.985 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.01156, allocations: 59.8 kB / 0.9851 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.491e-05/0.0116, allocations: 12 kB / 0.9851 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001821/0.01179, allocations: 51.83 kB / 0.9851 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.213e-05/0.01188, allocations: 39.89 kB / 0.9852 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.012, allocations: 51.84 kB / 0.9852 GB, free: 8 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004435/0.01244, allocations: 183.4 kB / 0.9854 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.01244, allocations: 0 / 0.9854 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.513e-06/0.01245, allocations: 4 kB / 0.9854 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.714e-06/0.01245, allocations: 0 / 0.9854 GB, free: 7.816 MB / 0.9356 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.001233/0.01369, allocations: 421.2 kB / 0.9858 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.938e-05/0.01375, allocations: 12.03 kB / 0.9858 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004539/0.0142, allocations: 36.83 kB / 0.9859 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003665/0.01457, allocations: 154.1 kB / 0.986 GB, free: 7.141 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.01467, allocations: 68.14 kB / 0.9861 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.705e-05/0.01472, allocations: 12.38 kB / 0.9861 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005034/0.01522, allocations: 177.8 kB / 0.9863 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.01523, allocations: 4 kB / 0.9863 GB, free: 6.852 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.261e-05/0.01527, allocations: 4 kB / 0.9863 GB, free: 6.848 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.028e-05/0.0153, allocations: 4 kB / 0.9863 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003815/0.01568, allocations: 121.6 kB / 0.9864 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.01691, allocations: 0.5542 MB / 0.9869 GB, free: 6.117 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003652/0.01727, allocations: 84.25 kB / 0.987 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.01741, allocations: 58.61 kB / 0.9871 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.01743, allocations: 0 / 0.9871 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003737/0.0178, allocations: 176.5 kB / 0.9872 GB, free: 5.75 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 2.004e-06/0.0178, allocations: 0 / 0.9872 GB, free: 5.75 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0006249/0.01843, allocations: 218.8 kB / 0.9874 GB, free: 5.512 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.01857, allocations: 140.4 kB / 0.9876 GB, free: 5.344 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002886/0.01886, allocations: 186.9 kB / 0.9878 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.01889, allocations: 33.7 kB / 0.9878 GB, free: 5.113 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.01904, allocations: 139.7 kB / 0.9879 GB, free: 4.973 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.116e-05/0.01908, allocations: 27.83 kB / 0.9879 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.01925, allocations: 41.7 kB / 0.988 GB, free: 4.898 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002486/0.0195, allocations: 318.8 kB / 0.9883 GB, free: 4.578 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001879/0.01969, allocations: 95.39 kB / 0.9884 GB, free: 4.473 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.01995, allocations: 176.6 kB / 0.9885 GB, free: 4.254 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004161/0.02037, allocations: 234.3 kB / 0.9888 GB, free: 3.973 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.02037, allocations: 0 / 0.9888 GB, free: 3.973 MB / 0.9356 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006602/0.02103, allocations: 304.3 kB / 0.9891 GB, free: 3.645 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.885e-05/0.02111, allocations: 63.39 kB / 0.9891 GB, free: 3.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.02112, allocations: 0 / 0.9891 GB, free: 3.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.02114, allocations: 4 kB / 0.9891 GB, free: 3.566 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.02133, allocations: 39.86 kB / 0.9892 GB, free: 3.527 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.857e-05/0.02135, allocations: 4 kB / 0.9892 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002081/0.02156, allocations: 27.83 kB / 0.9892 GB, free: 3.496 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.02158, allocations: 8 kB / 0.9892 GB, free: 3.488 MB / 0.9356 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.0002301/0.02181, allocations: 173.7 kB / 0.9894 GB, free: 3.305 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.793e-05/0.02185, allocations: 11.95 kB / 0.9894 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.726e-05/0.0219, allocations: 13.47 kB / 0.9894 GB, free: 3.281 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.0219, allocations: 0 / 0.9894 GB, free: 3.281 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.02191, allocations: 3.938 kB / 0.9894 GB, free: 3.277 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.02192, allocations: 12.02 kB / 0.9894 GB, free: 3.266 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.02215, allocations: 141.3 kB / 0.9895 GB, free: 3.098 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.02215, allocations: 0 / 0.9895 GB, free: 3.098 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.02227, allocations: 8 kB / 0.9895 GB, free: 3.09 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.02227, allocations: 0 / 0.9895 GB, free: 3.09 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.789e-05/0.02231, allocations: 11.98 kB / 0.9896 GB, free: 3.078 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.02231, allocations: 0 / 0.9896 GB, free: 3.078 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.02231, allocations: 0 / 0.9896 GB, free: 3.078 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007622/0.02307, allocations: 286.3 kB / 0.9898 GB, free: 2.762 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.108e-05/0.02311, allocations: 11.94 kB / 0.9898 GB, free: 2.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.664e-05/0.02316, allocations: 7.984 kB / 0.9899 GB, free: 2.742 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.02329, allocations: 8 kB / 0.9899 GB, free: 2.734 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.02339, allocations: 15.92 kB / 0.9899 GB, free: 2.719 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.0234, allocations: 0 / 0.9899 GB, free: 2.719 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002045/0.0236, allocations: 140.3 kB / 0.99 GB, free: 2.582 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.0236, allocations: 0 / 0.99 GB, free: 2.582 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004061/0.02401, allocations: 32 kB / 0.99 GB, free: 2.551 MB / 0.9356 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.0001865/0.0242, allocations: 103.2 kB / 0.9901 GB, free: 2.438 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006109/0.02481, allocations: 303.7 kB / 0.9904 GB, free: 2.098 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.02481, allocations: 0 / 0.9904 GB, free: 2.098 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002059/0.02502, allocations: 121.7 kB / 0.9905 GB, free: 1.961 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.02538, allocations: 22.19 kB / 0.9906 GB, free: 1.941 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.02643, allocations: 318.2 kB / 0.9909 GB, free: 1.602 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001675/0.0266, allocations: 102.3 kB / 0.991 GB, free: 1.477 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001229/0.02672, allocations: 16.64 kB / 0.991 GB, free: 1.461 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.846e-05/0.02678, allocations: 16.5 kB / 0.991 GB, free: 1.445 MB / 0.9356 GB Notification: Performance of SimCode: time 5.91e-07/0.02678, allocations: 0 / 0.991 GB, free: 1.445 MB / 0.9356 GB Notification: Performance of Templates: time 0.008984/0.03577, allocations: 1.464 MB / 0.9924 GB, free: 20 kB / 0.9356 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/jenkins/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: 9.11888949945569]