Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.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.001936/0.001936, allocations: 87.69 kB / 20.24 MB, free: 4.184 MB / 18.57 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.002098/0.002098, allocations: 157.3 kB / 23.55 MB, free: 0.875 MB / 18.57 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.559/1.559, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 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.042/3.042, allocations: 377.8 MB / 0.6232 GB, free: 8.547 MB / 0.5886 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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 0.8108 GB, free: 2.121 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.375e-05/3.563e-05, allocations: 7.5 kB / 0.8108 GB, free: 2.113 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005633/0.005668, allocations: 3.155 MB / 0.8139 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.003959/0.009627, allocations: 1.743 MB / 0.8156 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.009782, allocations: 7.938 kB / 0.8156 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.01098, allocations: 336.2 kB / 0.8159 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0006284/0.0116, allocations: 220 kB / 0.8161 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005361/0.01214, allocations: 181 kB / 0.8163 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.0126, allocations: 331.4 kB / 0.8166 GB, free: 12.17 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003836/0.01298, allocations: 177.6 kB / 0.8168 GB, free: 12 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003592/0.01334, allocations: 191.5 kB / 0.817 GB, free: 11.81 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003511/0.01369, allocations: 152.3 kB / 0.8171 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 5.226e-05/0.01375, allocations: 21 kB / 0.8171 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004458/0.01419, allocations: 231.3 kB / 0.8173 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.01435, allocations: 105.1 kB / 0.8174 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.01449, allocations: 91.81 kB / 0.8175 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0006843/0.01517, allocations: 438.7 kB / 0.818 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.01517, allocations: 0 / 0.818 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.442e-06/0.01518, allocations: 1.75 kB / 0.818 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 1.342e-05/0.01519, allocations: 4 kB / 0.818 GB, free: 10.79 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001122/0.01631, allocations: 0.5892 MB / 0.8185 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.01635, allocations: 8.969 kB / 0.8185 GB, free: 10.15 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008173/0.01717, allocations: 140.5 kB / 0.8187 GB, free: 10.02 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000403/0.01757, allocations: 209 kB / 0.8189 GB, free: 9.789 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.01759, allocations: 16.86 kB / 0.8189 GB, free: 9.773 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.0177, allocations: 28.52 kB / 0.8189 GB, free: 9.746 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005939/0.0183, allocations: 327.1 kB / 0.8192 GB, free: 9.387 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.01831, allocations: 192 / 0.8192 GB, free: 9.387 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.504e-05/0.01835, allocations: 13.53 kB / 0.8192 GB, free: 9.375 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001082/0.01846, allocations: 32.47 kB / 0.8193 GB, free: 9.344 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003522/0.01881, allocations: 153.8 kB / 0.8194 GB, free: 9.195 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/0.02083, allocations: 1.242 MB / 0.8206 GB, free: 7.898 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004065/0.02124, allocations: 143.7 kB / 0.8208 GB, free: 7.746 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.02135, allocations: 47.67 kB / 0.8208 GB, free: 7.695 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001166/0.02147, allocations: 13.23 kB / 0.8208 GB, free: 7.684 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.02151, allocations: 37.39 kB / 0.8209 GB, free: 7.637 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=18): time 1.102e-06/0.02151, allocations: 2.562 kB / 0.8209 GB, free: 7.637 MB / 0.7761 GB Notification: Performance of matching and sorting (n=19): time 0.00113/0.02264, allocations: 483.9 kB / 0.8213 GB, free: 7.129 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.02269, allocations: 59.34 kB / 0.8214 GB, free: 7.059 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/0.02297, allocations: 257.8 kB / 0.8216 GB, free: 6.789 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.02299, allocations: 25.7 kB / 0.8217 GB, free: 6.758 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.02317, allocations: 223.2 kB / 0.8219 GB, free: 6.535 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 7.507e-05/0.02325, allocations: 67.97 kB / 0.8219 GB, free: 6.469 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.02338, allocations: 75.3 kB / 0.822 GB, free: 6.387 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000559/0.02393, allocations: 0.5009 MB / 0.8225 GB, free: 5.875 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.02407, allocations: 55.97 kB / 0.8225 GB, free: 5.82 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.02428, allocations: 143.8 kB / 0.8227 GB, free: 5.652 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.02464, allocations: 203.8 kB / 0.8229 GB, free: 5.426 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.02464, allocations: 3.938 kB / 0.8229 GB, free: 5.422 MB / 0.7761 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007106/0.02535, allocations: 297.5 kB / 0.8232 GB, free: 5.125 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.02537, allocations: 5.031 kB / 0.8232 GB, free: 5.121 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.02538, allocations: 4 kB / 0.8232 GB, free: 5.117 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007587/0.02614, allocations: 113.3 kB / 0.8233 GB, free: 5.008 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002607/0.0264, allocations: 51.84 kB / 0.8233 GB, free: 4.957 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002301/0.0287, allocations: 1.969 MB / 0.8253 GB, free: 2.863 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002205/0.02892, allocations: 20.62 kB / 0.8253 GB, free: 2.844 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.02895, allocations: 8 kB / 0.8253 GB, free: 2.836 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002009/0.02915, allocations: 181.1 kB / 0.8255 GB, free: 2.652 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.521e-05/0.02921, allocations: 23.84 kB / 0.8255 GB, free: 2.629 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000445/0.02966, allocations: 188.2 kB / 0.8257 GB, free: 2.441 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.02966, allocations: 0 / 0.8257 GB, free: 2.441 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.41e-07/0.02966, allocations: 0 / 0.8257 GB, free: 2.441 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.02967, allocations: 3.984 kB / 0.8257 GB, free: 2.438 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009614/0.03063, allocations: 0.5552 MB / 0.8262 GB, free: 1.832 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.03063, allocations: 1.281 kB / 0.8262 GB, free: 1.832 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003245/0.03095, allocations: 63.89 kB / 0.8263 GB, free: 1.77 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.03096, allocations: 0 / 0.8263 GB, free: 1.77 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.626e-05/0.03098, allocations: 11.14 kB / 0.8263 GB, free: 1.762 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.03099, allocations: 4 kB / 0.8263 GB, free: 1.758 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.03099, allocations: 4 kB / 0.8263 GB, free: 1.754 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005634/0.03156, allocations: 405.3 kB / 0.8267 GB, free: 1.332 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.03167, allocations: 39.88 kB / 0.8267 GB, free: 1.293 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.3e-05/0.03171, allocations: 4 kB / 0.8267 GB, free: 1.289 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.03188, allocations: 11.98 kB / 0.8267 GB, free: 1.277 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.029e-05/0.03193, allocations: 17.16 kB / 0.8267 GB, free: 1.262 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.03195, allocations: 7.938 kB / 0.8267 GB, free: 1.254 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001737/0.03212, allocations: 181.2 kB / 0.8269 GB, free: 1.078 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.03212, allocations: 0 / 0.8269 GB, free: 1.078 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003731/0.03249, allocations: 72.53 kB / 0.827 GB, free: 1.008 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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.0001967/0.03269, allocations: 112.3 kB / 0.8271 GB, free: 0.8906 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000769/0.03346, allocations: 386.2 kB / 0.8275 GB, free: 0.4922 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.03346, allocations: 0 / 0.8275 GB, free: 0.4922 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.0336, allocations: 77.16 kB / 0.8275 GB, free: 424 kB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003915/0.034, allocations: 29.67 kB / 0.8276 GB, free: 396 kB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.03524, allocations: 0.545 MB / 0.8281 GB, free: 15.8 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.03544, allocations: 161.2 kB / 0.8283 GB, free: 15.63 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0001526/0.03559, allocations: 41.91 kB / 0.8283 GB, free: 15.59 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.241e-05/0.03566, allocations: 20.5 kB / 0.8283 GB, free: 15.57 MB / 0.7917 GB Notification: Performance of SimCode: time 6.22e-07/0.03566, allocations: 0 / 0.8283 GB, free: 15.57 MB / 0.7917 GB Notification: Performance of Templates: time 0.008149/0.04381, allocations: 2.821 MB / 0.8311 GB, free: 12.79 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.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: 8.288283662055619]