Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.344/2.344, allocations: 393.5 MB / 408.4 MB, free: 10.94 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001135, allocations: 187.3 kB / 0.4902 GB, free: 2.215 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.537/1.537, allocations: 223.1 MB / 0.7992 GB, free: 15.64 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008806/0.0008806, allocations: 96.38 kB / 0.9396 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000401/0.000401, allocations: 9.875 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.2996, allocations: 143 MB / 1.229 GB, free: 85.43 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2252/0.5248, allocations: 172.3 MB / 1.398 GB, free: 8.855 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.5252, allocations: 95.94 kB / 1.398 GB, free: 8.762 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.5938/1.119, allocations: 15.79 MB / 1.413 GB, free: 171.6 MB / 0.9011 GB Notification: Performance of FrontEnd: time 4.208e-06/1.119, allocations: 8.5 kB / 1.413 GB, free: 171.6 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.114e-05/1.119, allocations: 3.094 kB / 1.413 GB, free: 171.6 MB / 0.9011 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.0008229/1.12, allocations: 480.6 kB / 1.413 GB, free: 171.2 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/1.12, allocations: 9.062 kB / 1.414 GB, free: 171.2 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007248/1.121, allocations: 88.95 kB / 1.414 GB, free: 171.2 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/1.121, allocations: 228.1 kB / 1.414 GB, free: 171 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/1.121, allocations: 12.7 kB / 1.414 GB, free: 171 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.911e-05/1.121, allocations: 18.03 kB / 1.414 GB, free: 171 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005589/1.122, allocations: 315.6 kB / 1.414 GB, free: 170.8 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/1.122, allocations: 7.875 kB / 1.414 GB, free: 170.8 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/1.122, allocations: 8.453 kB / 1.414 GB, free: 170.8 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.482e-05/1.122, allocations: 21.09 kB / 1.414 GB, free: 170.8 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005205/1.122, allocations: 248 kB / 1.414 GB, free: 170.8 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00161/1.124, allocations: 1.633 MB / 1.416 GB, free: 169.5 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006768/1.125, allocations: 427.1 kB / 1.416 GB, free: 169.3 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001716/1.125, allocations: 85.95 kB / 1.416 GB, free: 169.2 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/1.125, allocations: 38.08 kB / 1.417 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=13): time 1.864e-06/1.125, allocations: 3.938 kB / 1.417 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of matching and sorting (n=14): time 0.0008521/1.126, allocations: 299.6 kB / 1.417 GB, free: 169 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/1.126, allocations: 80.38 kB / 1.417 GB, free: 168.9 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/1.126, allocations: 154.5 kB / 1.417 GB, free: 168.9 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/1.126, allocations: 29.77 kB / 1.417 GB, free: 168.8 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/1.126, allocations: 155.4 kB / 1.417 GB, free: 168.7 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 4.162e-05/1.126, allocations: 50.66 kB / 1.417 GB, free: 168.7 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.131e-05/1.126, allocations: 5.25 kB / 1.417 GB, free: 168.7 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 9.188e-05/1.126, allocations: 326.9 kB / 1.418 GB, free: 168.3 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/1.126, allocations: 72.67 kB / 1.418 GB, free: 168.3 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/1.127, allocations: 152 kB / 1.418 GB, free: 168.3 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001655/1.127, allocations: 103.6 kB / 1.418 GB, free: 168.2 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/1.127, allocations: 5.188 kB / 1.418 GB, free: 168.2 MB / 0.9011 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004245/1.127, allocations: 263.7 kB / 1.418 GB, free: 168.2 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002231/1.127, allocations: 0.9645 MB / 1.419 GB, free: 167.2 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/1.127, allocations: 2.906 kB / 1.419 GB, free: 167.2 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/1.127, allocations: 4.281 kB / 1.419 GB, free: 167.2 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000259/1.128, allocations: 53.56 kB / 1.419 GB, free: 167.2 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/1.128, allocations: 4.938 kB / 1.419 GB, free: 167.2 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/1.128, allocations: 32.12 kB / 1.419 GB, free: 167.2 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.386e-05/1.128, allocations: 13.06 kB / 1.419 GB, free: 167.2 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 8.485e-06/1.128, allocations: 3.344 kB / 1.419 GB, free: 167.2 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003338/1.128, allocations: 206.6 kB / 1.419 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/1.128, allocations: 3.875 kB / 1.419 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.739e-06/1.128, allocations: 4.047 kB / 1.419 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001921/1.129, allocations: 58.06 kB / 1.419 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/1.129, allocations: 3.359 kB / 1.419 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/1.129, allocations: 10.03 kB / 1.419 GB, free: 167.1 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/1.129, allocations: 13.27 kB / 1.419 GB, free: 167.1 MB / 0.9011 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001512/1.129, allocations: 230.3 kB / 1.42 GB, free: 166.9 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.471e-05/1.129, allocations: 14.73 kB / 1.42 GB, free: 166.9 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003762/1.129, allocations: 202.7 kB / 1.42 GB, free: 166.9 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/1.129, allocations: 5.781 kB / 1.42 GB, free: 166.9 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/1.129, allocations: 2.016 kB / 1.42 GB, free: 166.9 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/1.129, allocations: 0.75 kB / 1.42 GB, free: 166.9 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/1.131, allocations: 0.9638 MB / 1.421 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/1.131, allocations: 3.125 kB / 1.421 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/1.131, allocations: 45.14 kB / 1.421 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.812e-06/1.131, allocations: 4.375 kB / 1.421 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/1.131, allocations: 4.5 kB / 1.421 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/1.131, allocations: 4.625 kB / 1.421 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.131, allocations: 3.906 kB / 1.421 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004202/1.131, allocations: 0.5839 MB / 1.421 GB, free: 165.7 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/1.131, allocations: 111.8 kB / 1.422 GB, free: 165.6 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.564e-05/1.131, allocations: 9.562 kB / 1.422 GB, free: 165.6 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/1.132, allocations: 15.08 kB / 1.422 GB, free: 165.6 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.929e-05/1.132, allocations: 18.72 kB / 1.422 GB, free: 165.6 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/1.132, allocations: 11.16 kB / 1.422 GB, free: 165.6 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001086/1.132, allocations: 132.1 kB / 1.422 GB, free: 165.5 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.11e-07/1.132, allocations: 0 / 1.422 GB, free: 165.5 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0005371/1.132, allocations: 85.05 kB / 1.422 GB, free: 165.5 MB / 0.9011 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001699/1.133, allocations: 124.6 kB / 1.422 GB, free: 165.4 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0004838/1.133, allocations: 299.3 kB / 1.422 GB, free: 165.4 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/1.133, allocations: 1.656 kB / 1.422 GB, free: 165.4 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001167/1.133, allocations: 85.81 kB / 1.422 GB, free: 165.4 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/1.133, allocations: 28.7 kB / 1.422 GB, free: 165.4 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009026/1.134, allocations: 0.5692 MB / 1.423 GB, free: 165 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002319/1.135, allocations: 0.7504 MB / 1.424 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002269/1.135, allocations: 88.16 kB / 1.424 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.207e-05/1.135, allocations: 16.5 kB / 1.424 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of SimCode: time 3.71e-07/1.135, allocations: 0 / 1.424 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of Templates: time 0.004978/1.14, allocations: 1.665 MB / 1.425 GB, free: 164.2 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches