Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.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.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008562/0.008562, allocations: 100.3 kB / 15.73 MB, free: 6 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.001535/0.001535, allocations: 195.4 kB / 16.67 MB, free: 5.918 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.447/1.447, allocations: 222.9 MB / 240.3 MB, free: 15.16 MB / 206.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.258/2.258, allocations: 390.2 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 67.91 kB / 0.9508 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9941/0.9954, allocations: 140.4 MB / 1.088 GB, free: 5.773 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.004075/0.9996, allocations: 2.628 MB / 1.09 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002375/1.002, allocations: 1.475 MB / 1.092 GB, free: 3 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/1.002, allocations: 7.5 kB / 1.092 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00109/1.003, allocations: 224.7 kB / 1.092 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000849/1.004, allocations: 189.2 kB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007072/1.005, allocations: 149.3 kB / 1.092 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004621/1.005, allocations: 229.7 kB / 1.093 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005238/1.006, allocations: 168.4 kB / 1.093 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002564/1.006, allocations: 102.1 kB / 1.093 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003456/1.006, allocations: 114.9 kB / 1.093 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.354e-05/1.006, allocations: 14.22 kB / 1.093 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005922/1.007, allocations: 222.9 kB / 1.093 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001394/1.007, allocations: 80.78 kB / 1.093 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001271/1.007, allocations: 81.73 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006653/1.008, allocations: 327.4 kB / 1.094 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/1.008, allocations: 0.8438 kB / 1.094 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.615e-06/1.008, allocations: 0 / 1.094 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.185e-06/1.008, allocations: 0 / 1.094 GB, free: 2.172 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0008547/1.009, allocations: 491.4 kB / 1.094 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/1.009, allocations: 8.875 kB / 1.094 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006761/1.01, allocations: 76.84 kB / 1.094 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003012/1.01, allocations: 245.9 kB / 1.095 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/1.01, allocations: 11.14 kB / 1.095 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.464e-05/1.01, allocations: 15.53 kB / 1.095 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006081/1.011, allocations: 322.5 kB / 1.095 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/1.011, allocations: 5.422 kB / 1.095 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/1.011, allocations: 6.5 kB / 1.095 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.716e-05/1.011, allocations: 23.09 kB / 1.095 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005143/1.011, allocations: 252.8 kB / 1.095 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/1.013, allocations: 1.63 MB / 1.097 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007364/1.014, allocations: 407.3 kB / 1.097 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/1.014, allocations: 84.33 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001569/1.014, allocations: 86.02 kB / 1.097 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/1.014, allocations: 44.34 kB / 1.097 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=13): time 1.522e-06/1.014, allocations: 4.156 kB / 1.097 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14): time 0.000781/1.015, allocations: 312.8 kB / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/1.015, allocations: 78.95 kB / 1.098 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/1.015, allocations: 174.7 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/1.015, allocations: 25.7 kB / 1.098 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/1.015, allocations: 150.1 kB / 1.098 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.516e-05/1.015, allocations: 62.3 kB / 1.098 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.772e-05/1.016, allocations: 45.2 kB / 1.098 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001562/1.016, allocations: 326.5 kB / 1.098 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/1.016, allocations: 81.34 kB / 1.099 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002434/1.016, allocations: 157 kB / 1.099 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003891/1.016, allocations: 252.9 kB / 1.099 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/1.016, allocations: 1.484 kB / 1.099 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005661/1.017, allocations: 281 kB / 1.099 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/1.017, allocations: 5.594 kB / 1.099 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/1.017, allocations: 3.094 kB / 1.099 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.047e-05/1.017, allocations: 8 kB / 1.099 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/1.017, allocations: 53.55 kB / 1.099 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/1.017, allocations: 8.891 kB / 1.099 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/1.018, allocations: 16.06 kB / 1.099 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.103e-05/1.018, allocations: 13.5 kB / 1.099 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002584/1.018, allocations: 172 kB / 1.099 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002269/1.018, allocations: 153.8 kB / 1.1 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003672/1.019, allocations: 230.3 kB / 1.1 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.707e-06/1.019, allocations: 1.094 kB / 1.1 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0004993/1.019, allocations: 250.3 kB / 1.1 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/1.019, allocations: 7.125 kB / 1.1 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/1.019, allocations: 3.719 kB / 1.1 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.003e-06/1.019, allocations: 7.344 kB / 1.1 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/1.019, allocations: 54.59 kB / 1.1 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/1.019, allocations: 4.141 kB / 1.1 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001217/1.019, allocations: 14.73 kB / 1.1 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/1.02, allocations: 12.92 kB / 1.1 GB, free: 13.32 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (25): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001502/1.02, allocations: 192.4 kB / 1.1 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.238e-05/1.02, allocations: 14.56 kB / 1.1 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004512/1.02, allocations: 211 kB / 1.101 GB, free: 13.01 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/1.02, allocations: 2.062 kB / 1.101 GB, free: 13.01 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/1.02, allocations: 0.7031 kB / 1.101 GB, free: 13.01 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/1.02, allocations: 1.75 kB / 1.101 GB, free: 13.01 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001516/1.022, allocations: 0.9584 MB / 1.101 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/1.022, allocations: 5 kB / 1.101 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/1.022, allocations: 38.84 kB / 1.102 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/1.022, allocations: 7.938 kB / 1.102 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/1.022, allocations: 8.969 kB / 1.102 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/1.022, allocations: 4.672 kB / 1.102 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.708e-06/1.022, allocations: 12.67 kB / 1.102 GB, free: 12.28 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004684/1.022, allocations: 436.7 kB / 1.102 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/1.023, allocations: 111.2 kB / 1.102 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.712e-05/1.023, allocations: 5.828 kB / 1.102 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/1.023, allocations: 16.33 kB / 1.102 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.191e-05/1.023, allocations: 18.58 kB / 1.102 GB, free: 11.79 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/1.023, allocations: 11.62 kB / 1.102 GB, free: 11.79 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001389/1.023, allocations: 148.7 kB / 1.102 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.21e-07/1.023, allocations: 0 / 1.102 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005473/1.024, allocations: 75.31 kB / 1.102 GB, free: 11.67 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 simulation (14): * Single equations (assignments): 14 * 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.0001955/1.024, allocations: 110.7 kB / 1.102 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005833/1.024, allocations: 314.3 kB / 1.103 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/1.024, allocations: 0 / 1.103 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001474/1.025, allocations: 81.83 kB / 1.103 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005177/1.025, allocations: 37.56 kB / 1.103 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/1.026, allocations: 474.6 kB / 1.103 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/1.027, allocations: 0.7464 MB / 1.104 GB, free: 10.4 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000216/1.027, allocations: 75.03 kB / 1.104 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.502e-05/1.027, allocations: 22.08 kB / 1.104 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of SimCode: time 2.21e-07/1.027, allocations: 0 / 1.104 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of Templates: time 0.006046/1.033, allocations: 1.846 MB / 1.106 GB, free: 10.24 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches