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/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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001728/0.001728, allocations: 101.7 kB / 16.35 MB, free: 5.875 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.002058/0.002059, allocations: 196 kB / 17.3 MB, free: 5.516 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.452/1.452, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.267/2.267, allocations: 390.3 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 65.17 kB / 0.814 GB, free: 32.57 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3093, allocations: 140.4 MB / 0.9511 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N): time 0.02828/0.3376, allocations: 20.42 MB / 0.9711 GB, free: 3.609 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01311/0.3508, allocations: 7.541 MB / 0.9784 GB, free: 12.05 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001987/0.3528, allocations: 63.81 kB / 0.9785 GB, free: 11.98 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.00367/0.3566, allocations: 1.349 MB / 0.9798 GB, free: 10.63 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.002797/0.3594, allocations: 0.9724 MB / 0.9808 GB, free: 9.652 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.005493/0.3649, allocations: 2.006 MB / 0.9827 GB, free: 7.648 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.005236/0.3702, allocations: 4.32 MB / 0.9869 GB, free: 3.316 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007969/0.3782, allocations: 6.161 MB / 0.993 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002977/0.3812, allocations: 1.843 MB / 0.9948 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003607/0.3848, allocations: 2.205 MB / 0.9969 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0009399/0.3858, allocations: 428 kB / 0.9973 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001935/0.3877, allocations: 0.9089 MB / 0.9982 GB, free: 7.703 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.00177/0.3895, allocations: 1.657 MB / 0.9998 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.002073/0.3916, allocations: 1.716 MB / 1.002 GB, free: 4.32 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00593/0.3976, allocations: 6.167 MB / 1.008 GB, free: 14.14 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.3976, allocations: 0 / 1.008 GB, free: 14.14 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.046e-06/0.3976, allocations: 0 / 1.008 GB, free: 14.14 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0001527/0.3978, allocations: 0 / 1.008 GB, free: 14.14 MB / 0.795 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.006837/0.4046, allocations: 3.04 MB / 1.01 GB, free: 11.04 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.4047, allocations: 12.03 kB / 1.011 GB, free: 11.02 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003011/0.4077, allocations: 0.6805 MB / 1.011 GB, free: 10.34 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003513/0.4112, allocations: 1.563 MB / 1.013 GB, free: 8.73 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001819/0.4114, allocations: 226.1 kB / 1.013 GB, free: 8.508 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005379/0.412, allocations: 284.3 kB / 1.013 GB, free: 8.23 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008891/0.4209, allocations: 5.055 MB / 1.018 GB, free: 2.988 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.721e-05/0.421, allocations: 7.938 kB / 1.018 GB, free: 2.98 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000332/0.4213, allocations: 120 kB / 1.018 GB, free: 2.863 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002633/0.4216, allocations: 208.6 kB / 1.018 GB, free: 2.656 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007313/0.4289, allocations: 4.173 MB / 1.023 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02601/0.455, allocations: 22.87 MB / 1.045 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002698/0.4577, allocations: 1.723 MB / 1.047 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001541/0.4593, allocations: 1.129 MB / 1.048 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001806/0.4595, allocations: 101.8 kB / 1.048 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.171e-05/0.4595, allocations: 43.2 kB / 1.048 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=84): time 2.905e-06/0.4595, allocations: 0 / 1.048 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of matching and sorting (n=87): time 0.005978/0.4655, allocations: 3.985 MB / 1.052 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.868e-05/0.4656, allocations: 141.1 kB / 1.052 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.4667, allocations: 0.8525 MB / 1.053 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 8.498e-05/0.4668, allocations: 41.7 kB / 1.053 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007358/0.4675, allocations: 1.158 MB / 1.054 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002729/0.4678, allocations: 311.8 kB / 1.054 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004197/0.4682, allocations: 282.6 kB / 1.054 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001873/0.4684, allocations: 406.7 kB / 1.055 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001125/0.4696, allocations: 0.8023 MB / 1.056 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001467/0.471, allocations: 1.291 MB / 1.057 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/0.4737, allocations: 2.136 MB / 1.059 GB, free: 6.469 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.4737, allocations: 4 kB / 1.059 GB, free: 6.465 MB / 0.8419 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003202/0.4769, allocations: 2.168 MB / 1.061 GB, free: 4.289 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.477, allocations: 16.03 kB / 1.061 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/0.477, allocations: 12 kB / 1.061 GB, free: 4.262 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.414e-05/0.477, allocations: 24 kB / 1.061 GB, free: 4.238 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.4786, allocations: 407.2 kB / 1.061 GB, free: 3.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.833e-05/0.4786, allocations: 23.94 kB / 1.061 GB, free: 3.816 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.4798, allocations: 203.2 kB / 1.062 GB, free: 3.617 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.4799, allocations: 59.98 kB / 1.062 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002429/0.4823, allocations: 1.662 MB / 1.063 GB, free: 1.891 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001291/0.4836, allocations: 1.17 MB / 1.064 GB, free: 500 kB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002242/0.4859, allocations: 1.878 MB / 1.066 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.067e-06/0.4859, allocations: 7.938 kB / 1.066 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of matching and sorting (n=156) (initialization_lambda0): time 0.002968/0.4889, allocations: 1.886 MB / 1.068 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.4889, allocations: 12 kB / 1.068 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.4889, allocations: 19.94 kB / 1.068 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.489, allocations: 20 kB / 1.068 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.4902, allocations: 351.9 kB / 1.069 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.356e-05/0.4903, allocations: 43.86 kB / 1.069 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.4915, allocations: 155.4 kB / 1.069 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.4916, allocations: 63.98 kB / 1.069 GB, free: 11.84 MB / 0.8575 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004987/0.4921, allocations: 267.7 kB / 1.069 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003182/0.4924, allocations: 98.78 kB / 1.069 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003041/0.4955, allocations: 1.835 MB / 1.071 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.4955, allocations: 8 kB / 1.071 GB, free: 9.621 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.4955, allocations: 0 / 1.071 GB, free: 9.621 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-05/0.4956, allocations: 12.16 kB / 1.071 GB, free: 9.609 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6325/1.128, allocations: 9.568 MB / 1.08 GB, free: 122.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.122e-05/1.128, allocations: 11.97 kB / 1.08 GB, free: 122.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001811/1.13, allocations: 313.8 kB / 1.081 GB, free: 122.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.997e-05/1.13, allocations: 16.34 kB / 1.081 GB, free: 122.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/1.13, allocations: 28.27 kB / 1.081 GB, free: 122.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-05/1.13, allocations: 25.92 kB / 1.081 GB, free: 122.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.874e-05/1.13, allocations: 18.08 kB / 1.081 GB, free: 122.5 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003786/1.134, allocations: 2.402 MB / 1.083 GB, free: 121.8 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008819/1.135, allocations: 375.9 kB / 1.083 GB, free: 121.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00017/1.135, allocations: 32.78 kB / 1.083 GB, free: 121.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/1.136, allocations: 138.4 kB / 1.084 GB, free: 121.7 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002344/1.137, allocations: 93.44 kB / 1.084 GB, free: 121.7 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-05/1.137, allocations: 38.94 kB / 1.084 GB, free: 121.7 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0009026/1.138, allocations: 0.5858 MB / 1.084 GB, free: 121.6 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.61e-07/1.138, allocations: 1.438 kB / 1.084 GB, free: 121.6 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00363/1.141, allocations: 0.7512 MB / 1.085 GB, free: 121.6 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (90): * Single equations (assignments): 90 * 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.0003576/1.142, allocations: 147.1 kB / 1.085 GB, free: 121.5 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00609/1.148, allocations: 2.858 MB / 1.088 GB, free: 120.7 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.97e-05/1.148, allocations: 5.719 kB / 1.088 GB, free: 120.7 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001624/1.149, allocations: 0.9039 MB / 1.089 GB, free: 120.4 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002238/1.152, allocations: 300.5 kB / 1.089 GB, free: 120.4 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009286/1.161, allocations: 4.985 MB / 1.094 GB, free: 118 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002286/1.163, allocations: 2.127 MB / 1.096 GB, free: 117 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.002087/1.165, allocations: 0.7368 MB / 1.097 GB, free: 117 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003772/1.166, allocations: 84 kB / 1.097 GB, free: 116.9 MB / 0.8575 GB Notification: Performance of SimCode: time 1.463e-06/1.166, allocations: 3.562 kB / 1.097 GB, free: 116.9 MB / 0.8575 GB Notification: Performance of Templates: time 0.0356/1.201, allocations: 17.37 MB / 1.114 GB, free: 114 MB / 0.8575 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches