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.01071/0.01071, allocations: 101.1 kB / 15.73 MB, free: 6.043 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.002389/0.002389, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.602/1.602, allocations: 222.9 MB / 240.4 MB, free: 4.164 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.592/2.592, allocations: 390.2 MB / 0.6648 GB, free: 140 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 67.03 kB / 0.9508 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3552, allocations: 140.4 MB / 1.088 GB, free: 1.488 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005233/0.3605, allocations: 3.081 MB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003167/0.3637, allocations: 1.71 MB / 1.093 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001818/0.3639, allocations: 7.938 kB / 1.093 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001131/0.3651, allocations: 339.7 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005899/0.3657, allocations: 219 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005529/0.3662, allocations: 175.6 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003874/0.3666, allocations: 319 kB / 1.094 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004708/0.3671, allocations: 240.7 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000275/0.3674, allocations: 131.5 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003458/0.3678, allocations: 171.4 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.949e-05/0.3678, allocations: 20 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004341/0.3683, allocations: 235.6 kB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.3684, allocations: 103.7 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001551/0.3686, allocations: 127.4 kB / 1.095 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005885/0.3691, allocations: 414.8 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.3692, allocations: 0 / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.036e-06/0.3692, allocations: 0 / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.847e-06/0.3692, allocations: 0 / 1.095 GB, free: 10.21 MB / 0.8575 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.001196/0.3704, allocations: 0.5537 MB / 1.096 GB, free: 9.613 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.3705, allocations: 12.03 kB / 1.096 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007925/0.3713, allocations: 92.55 kB / 1.096 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.3717, allocations: 247.9 kB / 1.096 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.3717, allocations: 24.8 kB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/0.3718, allocations: 28.48 kB / 1.096 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006362/0.3725, allocations: 377.1 kB / 1.096 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.3725, allocations: 0 / 1.096 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.746e-05/0.3726, allocations: 15.92 kB / 1.096 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/0.3727, allocations: 32.41 kB / 1.096 GB, free: 8.738 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004842/0.3732, allocations: 301.5 kB / 1.097 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.3752, allocations: 1.525 MB / 1.098 GB, free: 6.766 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004658/0.3757, allocations: 241 kB / 1.098 GB, free: 6.523 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.3759, allocations: 112.8 kB / 1.098 GB, free: 6.41 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001544/0.3761, allocations: 89.05 kB / 1.099 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.3761, allocations: 38.55 kB / 1.099 GB, free: 6.258 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=18): time 1.453e-06/0.3761, allocations: 4 kB / 1.099 GB, free: 6.254 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001421/0.3775, allocations: 0.7862 MB / 1.099 GB, free: 5.418 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.3776, allocations: 55.41 kB / 1.099 GB, free: 5.352 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002197/0.3778, allocations: 191.2 kB / 1.1 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.3779, allocations: 29.7 kB / 1.1 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.378, allocations: 159.8 kB / 1.1 GB, free: 4.961 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.06e-05/0.378, allocations: 74.98 kB / 1.1 GB, free: 4.887 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.3782, allocations: 53.69 kB / 1.1 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.3783, allocations: 334.8 kB / 1.1 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.3785, allocations: 115.9 kB / 1.1 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002119/0.3787, allocations: 173.8 kB / 1.1 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003994/0.3791, allocations: 294.4 kB / 1.101 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3791, allocations: 4 kB / 1.101 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007379/0.3799, allocations: 415 kB / 1.101 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.3799, allocations: 11.98 kB / 1.101 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.3799, allocations: 4 kB / 1.101 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004379/0.3804, allocations: 92.77 kB / 1.101 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002524/0.3806, allocations: 55.91 kB / 1.101 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002093/0.3827, allocations: 1.875 MB / 1.103 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.3829, allocations: 23.91 kB / 1.103 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.383, allocations: 8 kB / 1.103 GB, free: 1.246 MB / 0.8575 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.0001902/0.3832, allocations: 161 kB / 1.103 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.077e-05/0.3832, allocations: 19.81 kB / 1.103 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005062/0.3838, allocations: 303.3 kB / 1.104 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3838, allocations: 0 / 1.104 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.3838, allocations: 0 / 1.104 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3838, allocations: 3.938 kB / 1.104 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009349/0.3847, allocations: 0.6992 MB / 1.104 GB, free: 0 / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3848, allocations: 8.109 kB / 1.104 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003024/0.3851, allocations: 59.95 kB / 1.104 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.3851, allocations: 0 / 1.104 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.3851, allocations: 15.88 kB / 1.104 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3851, allocations: 0 / 1.104 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3851, allocations: 3.938 kB / 1.104 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006621/0.3858, allocations: 0.512 MB / 1.105 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.3859, allocations: 116.9 kB / 1.105 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.288e-05/0.386, allocations: 11.98 kB / 1.105 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.3861, allocations: 11.98 kB / 1.105 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.3862, allocations: 11.98 kB / 1.105 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.3862, allocations: 4 kB / 1.105 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000132/0.3863, allocations: 148.1 kB / 1.105 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.146e-06/0.3864, allocations: 0 / 1.105 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003811/0.3867, allocations: 63.94 kB / 1.105 GB, free: 15 MB / 0.8731 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.0001952/0.3869, allocations: 117.5 kB / 1.105 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007621/0.3877, allocations: 430.3 kB / 1.106 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3877, allocations: 0 / 1.106 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.3879, allocations: 120.2 kB / 1.106 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.3883, allocations: 43.66 kB / 1.106 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.3896, allocations: 0.6215 MB / 1.107 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.39, allocations: 0.7714 MB / 1.107 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001553/0.3902, allocations: 61.89 kB / 1.107 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.564e-05/0.3902, allocations: 19.42 kB / 1.107 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of SimCode: time 7.01e-07/0.3903, allocations: 0 / 1.107 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of Templates: time 0.006725/0.397, allocations: 2.843 MB / 1.11 GB, free: 9.922 MB / 0.8731 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