Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I.1.|sen.I.2.|sen.I.3.|sen.I.4.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I.1.|sen.I.2.|sen.I.3.|sen.I.4.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.189/2.189, allocations: 387.1 MB / 399.7 MB, free: 9.453 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.001501/0.001501, allocations: 176.9 kB / 492.3 MB, free: 0.6016 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.61/1.61, allocations: 221.3 MB / 0.7871 GB, free: 12.92 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.0009027/0.0009025, allocations: 87.95 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.376e-05/3.38e-05, allocations: 6.344 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3119, allocations: 142.3 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.138/1.45, allocations: 191.8 MB / 1.4 GB, free: 8.105 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/1.45, allocations: 95.19 kB / 1.4 GB, free: 8.055 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.3045/1.755, allocations: 119 MB / 1.516 GB, free: 15.74 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.465e-06/1.755, allocations: 4 kB / 1.516 GB, free: 15.73 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0001507/1.755, allocations: 67.98 kB / 1.516 GB, free: 15.67 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 776 * Number of variables: 776 Notification: Performance of Generate backend data structure: time 0.00951/1.765, allocations: 2.407 MB / 1.518 GB, free: 13.2 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 6.259e-05/1.765, allocations: 8.031 kB / 1.518 GB, free: 13.2 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005177/1.77, allocations: 0.6951 MB / 1.519 GB, free: 12.5 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004755/1.775, allocations: 1.609 MB / 1.521 GB, free: 10.84 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002316/1.775, allocations: 225.8 kB / 1.521 GB, free: 10.62 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001057/1.776, allocations: 280 kB / 1.521 GB, free: 10.34 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01065/1.787, allocations: 4.533 MB / 1.526 GB, free: 5.621 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.53e-05/1.787, allocations: 7.938 kB / 1.526 GB, free: 5.613 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000377/1.787, allocations: 120 kB / 1.526 GB, free: 5.496 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002817/1.788, allocations: 184.7 kB / 1.526 GB, free: 5.312 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008969/1.797, allocations: 3.663 MB / 1.529 GB, free: 1.637 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03137/1.828, allocations: 23.06 MB / 1.552 GB, free: 8.441 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002901/1.831, allocations: 1.561 MB / 1.553 GB, free: 6.844 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/1.832, allocations: 0.8288 MB / 1.554 GB, free: 6 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001833/1.832, allocations: 89.67 kB / 1.554 GB, free: 5.895 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.126e-05/1.832, allocations: 47.06 kB / 1.554 GB, free: 5.836 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=72): time 3.186e-06/1.832, allocations: 4 kB / 1.554 GB, free: 5.832 MB / 0.9636 GB Notification: Performance of matching and sorting (n=75): time 0.005102/1.837, allocations: 2.9 MB / 1.557 GB, free: 2.902 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/1.838, allocations: 145 kB / 1.557 GB, free: 2.73 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/1.839, allocations: 0.9223 MB / 1.558 GB, free: 1.805 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 7.997e-05/1.839, allocations: 37.7 kB / 1.558 GB, free: 1.762 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008351/1.84, allocations: 1.2 MB / 1.559 GB, free: 0.543 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002781/1.84, allocations: 272.5 kB / 1.56 GB, free: 280 kB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.021e-05/1.84, allocations: 28 kB / 1.56 GB, free: 252 kB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0003072/1.841, allocations: 406.7 kB / 1.56 GB, free: 15.84 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/1.842, allocations: 0.7561 MB / 1.561 GB, free: 15.08 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001463/1.843, allocations: 1.252 MB / 1.562 GB, free: 13.61 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001358/1.845, allocations: 0.9662 MB / 1.563 GB, free: 12.64 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/1.845, allocations: 4 kB / 1.563 GB, free: 12.64 MB / 0.9792 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003462/1.848, allocations: 2.1 MB / 1.565 GB, free: 10.53 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.002701/1.851, allocations: 5.498 MB / 1.57 GB, free: 4.602 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.516e-05/1.851, allocations: 16 kB / 1.571 GB, free: 4.586 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.551e-05/1.851, allocations: 20 kB / 1.571 GB, free: 4.566 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/1.853, allocations: 407.3 kB / 1.571 GB, free: 4.168 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.773e-05/1.853, allocations: 31.92 kB / 1.571 GB, free: 4.137 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/1.854, allocations: 271.2 kB / 1.571 GB, free: 3.871 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/1.854, allocations: 55.98 kB / 1.571 GB, free: 3.816 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/1.854, allocations: 4 kB / 1.571 GB, free: 3.812 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002453/1.857, allocations: 1.69 MB / 1.573 GB, free: 2.125 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/1.857, allocations: 16 kB / 1.573 GB, free: 2.109 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.756e-05/1.857, allocations: 28.08 kB / 1.573 GB, free: 2.082 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/1.858, allocations: 359.4 kB / 1.573 GB, free: 1.73 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.068e-05/1.858, allocations: 31.86 kB / 1.573 GB, free: 1.699 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/1.859, allocations: 175.4 kB / 1.574 GB, free: 1.527 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.756e-05/1.859, allocations: 63.98 kB / 1.574 GB, free: 1.465 MB / 0.9792 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 156 * 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.0002935/1.86, allocations: 177.2 kB / 1.574 GB, free: 1.285 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002776/1.86, allocations: 98.78 kB / 1.574 GB, free: 1.188 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002473/1.862, allocations: 1.475 MB / 1.575 GB, free: 15.69 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/1.863, allocations: 11.95 kB / 1.575 GB, free: 15.68 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/1.863, allocations: 3.984 kB / 1.575 GB, free: 15.67 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/1.863, allocations: 4 kB / 1.575 GB, free: 15.67 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/1.873, allocations: 7.222 MB / 1.582 GB, free: 8.238 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/1.873, allocations: 8.094 kB / 1.582 GB, free: 8.23 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/1.875, allocations: 267.5 kB / 1.583 GB, free: 7.969 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.999e-05/1.875, allocations: 19.92 kB / 1.583 GB, free: 7.949 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-05/1.875, allocations: 24 kB / 1.583 GB, free: 7.926 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.562e-05/1.875, allocations: 20.19 kB / 1.583 GB, free: 7.906 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.818e-05/1.875, allocations: 11.94 kB / 1.583 GB, free: 7.895 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002815/1.878, allocations: 2.375 MB / 1.585 GB, free: 5.172 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007394/1.878, allocations: 383.5 kB / 1.585 GB, free: 4.777 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/1.878, allocations: 23.98 kB / 1.585 GB, free: 4.754 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009217/1.879, allocations: 143.7 kB / 1.586 GB, free: 4.613 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/1.88, allocations: 67.91 kB / 1.586 GB, free: 4.547 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.337e-05/1.88, allocations: 28 kB / 1.586 GB, free: 4.52 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 0.001047/1.881, allocations: 0.6989 MB / 1.586 GB, free: 3.805 MB / 0.9948 GB Notification: Performance of sort global known variables: time 1.41e-07/1.881, allocations: 0 / 1.586 GB, free: 3.805 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.002842/1.884, allocations: 0.8281 MB / 1.587 GB, free: 2.977 MB / 0.9948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 78 * 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.0002848/1.884, allocations: 154.9 kB / 1.587 GB, free: 2.816 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.003798/1.888, allocations: 2.587 MB / 1.59 GB, free: 240 kB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/1.888, allocations: 4 kB / 1.59 GB, free: 236 kB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009862/1.889, allocations: 0.7134 MB / 1.59 GB, free: 15.52 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/1.89, allocations: 255.2 kB / 1.591 GB, free: 15.27 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007493/1.898, allocations: 3.851 MB / 1.594 GB, free: 11.27 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002178/1.9, allocations: 2.168 MB / 1.597 GB, free: 9.07 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.002337/1.902, allocations: 0.7851 MB / 1.597 GB, free: 8.281 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/1.903, allocations: 79.42 kB / 1.597 GB, free: 8.207 MB / 1.01 GB Notification: Performance of SimCode: time 1.162e-06/1.903, allocations: 0 / 1.597 GB, free: 8.207 MB / 1.01 GB Notification: Performance of Templates: time 0.03297/1.936, allocations: 16.21 MB / 1.613 GB, free: 8.105 MB / 1.026 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads_N.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches