Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 108 kB / 15.61 MB, free: 152 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.001127/0.001127, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.396/1.396, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.47/2.47, allocations: 390.2 MB / 0.6647 GB, free: 468 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 71.88 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8522/0.8536, allocations: 140.3 MB / 0.9496 GB, free: 9.473 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004374/0.858, allocations: 3.092 MB / 0.9526 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002425/0.8605, allocations: 1.712 MB / 0.9543 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.8606, allocations: 8.938 kB / 0.9543 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0009824/0.8616, allocations: 331.2 kB / 0.9546 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004633/0.8621, allocations: 208.8 kB / 0.9548 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004348/0.8625, allocations: 182.7 kB / 0.955 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003282/0.8629, allocations: 322.3 kB / 0.9553 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003902/0.8633, allocations: 244.4 kB / 0.9555 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.8635, allocations: 137.6 kB / 0.9556 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002925/0.8638, allocations: 157.2 kB / 0.9558 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.488e-05/0.8638, allocations: 21.84 kB / 0.9558 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004133/0.8642, allocations: 238.6 kB / 0.956 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.8644, allocations: 108.6 kB / 0.9561 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001316/0.8645, allocations: 119.7 kB / 0.9563 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005125/0.865, allocations: 424 kB / 0.9567 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.865, allocations: 0 / 0.9567 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.894e-06/0.8651, allocations: 0 / 0.9567 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.8651, allocations: 5.188 kB / 0.9567 GB, free: 4.203 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009385/0.866, allocations: 0.5482 MB / 0.9572 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.8661, allocations: 9.438 kB / 0.9572 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007492/0.8668, allocations: 93.42 kB / 0.9573 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002855/0.8671, allocations: 257.9 kB / 0.9575 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.8671, allocations: 13.06 kB / 0.9576 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.73e-05/0.8672, allocations: 25.06 kB / 0.9576 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005428/0.8678, allocations: 378.1 kB / 0.9579 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.8678, allocations: 5.422 kB / 0.9579 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.262e-05/0.8679, allocations: 9.438 kB / 0.958 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/0.868, allocations: 25.11 kB / 0.958 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004511/0.8684, allocations: 310.5 kB / 0.9583 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001583/0.87, allocations: 1.528 MB / 0.9598 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004243/0.8705, allocations: 233.2 kB / 0.96 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.8706, allocations: 115.7 kB / 0.9601 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000129/0.8708, allocations: 95.84 kB / 0.9602 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.877e-05/0.8708, allocations: 35.62 kB / 0.9602 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 3.016e-06/0.8708, allocations: 1.125 kB / 0.9602 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.001281/0.8721, allocations: 0.7952 MB / 0.961 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.747e-05/0.8721, allocations: 53.88 kB / 0.9611 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.8723, allocations: 194.3 kB / 0.9612 GB, free: 436 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.8724, allocations: 30.73 kB / 0.9613 GB, free: 400 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.848e-05/0.8725, allocations: 168 kB / 0.9614 GB, free: 240 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.912e-05/0.8725, allocations: 70.77 kB / 0.9615 GB, free: 176 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.756e-05/0.8726, allocations: 55.14 kB / 0.9616 GB, free: 136 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.8728, allocations: 331.5 kB / 0.9619 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.873, allocations: 116.8 kB / 0.962 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.8732, allocations: 168.1 kB / 0.9621 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004058/0.8736, allocations: 299 kB / 0.9624 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.8736, allocations: 0 / 0.9624 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007733/0.8744, allocations: 415.6 kB / 0.9628 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.8744, allocations: 6.531 kB / 0.9628 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.8744, allocations: 1.281 kB / 0.9628 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004294/0.8749, allocations: 107 kB / 0.9629 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/0.8751, allocations: 49.25 kB / 0.963 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.8772, allocations: 1.873 MB / 0.9648 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.8775, allocations: 23.2 kB / 0.9648 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.8775, allocations: 16.48 kB / 0.9648 GB, free: 13.42 MB / 0.7325 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.0001824/0.8777, allocations: 148.6 kB / 0.965 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.693e-05/0.8778, allocations: 16.78 kB / 0.965 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005296/0.8783, allocations: 301 kB / 0.9653 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.8783, allocations: 6.719 kB / 0.9653 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.8783, allocations: 0 / 0.9653 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.8784, allocations: 8.609 kB / 0.9653 GB, free: 13.08 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009853/0.8793, allocations: 0.6984 MB / 0.966 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.8794, allocations: 1.188 kB / 0.966 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003117/0.8797, allocations: 54.39 kB / 0.966 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.8797, allocations: 6 kB / 0.966 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.8797, allocations: 10.06 kB / 0.9661 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.503e-06/0.8797, allocations: 5.875 kB / 0.9661 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.8797, allocations: 5.062 kB / 0.9661 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006197/0.8804, allocations: 0.5078 MB / 0.9666 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.8805, allocations: 123.3 kB / 0.9667 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.8805, allocations: 3.344 kB / 0.9667 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.8807, allocations: 17.59 kB / 0.9667 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.8808, allocations: 10.7 kB / 0.9667 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.8808, allocations: 8.406 kB / 0.9667 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001397/0.8809, allocations: 146.8 kB / 0.9669 GB, free: 11.9 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.5e-07/0.8809, allocations: 3.938 kB / 0.9669 GB, free: 11.9 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004169/0.8814, allocations: 66.84 kB / 0.9669 GB, free: 11.89 MB / 0.7325 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.0002411/0.8816, allocations: 103.8 kB / 0.967 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001009/0.8826, allocations: 442.4 kB / 0.9674 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.8826, allocations: 0 / 0.9674 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.8828, allocations: 125.3 kB / 0.9676 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004324/0.8833, allocations: 52.39 kB / 0.9676 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.8846, allocations: 0.6246 MB / 0.9682 GB, free: 11 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/0.885, allocations: 0.7707 MB / 0.969 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001828/0.8852, allocations: 60.58 kB / 0.969 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.38e-05/0.8852, allocations: 18.03 kB / 0.9691 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of SimCode: time 4.5e-07/0.8852, allocations: 5.125 kB / 0.9691 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of Templates: time 0.006525/0.8918, allocations: 2.782 MB / 0.9718 GB, free: 8.855 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches