Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001265/0.001265, allocations: 102.4 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.001393/0.001393, allocations: 191 kB / 17.29 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.359/1.359, 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 10.1.0-maint.10.0.x/package.mo): time 2.552/2.552, allocations: 437.1 MB / 0.7112 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 57.03 kB / 0.8707 GB, free: 1.465 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3134/0.3147, allocations: 151.7 MB / 1.019 GB, free: 9.863 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N): time 0.02293/0.3377, allocations: 20.43 MB / 1.039 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0127/0.3504, allocations: 7.537 MB / 1.046 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00245/0.3529, allocations: 63.81 kB / 1.046 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.004053/0.3571, allocations: 1.361 MB / 1.047 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.003557/0.3606, allocations: 0.9685 MB / 1.048 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.005436/0.3661, allocations: 2.001 MB / 1.05 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.005285/0.3714, allocations: 4.327 MB / 1.055 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006674/0.3781, allocations: 6.145 MB / 1.061 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00261/0.3807, allocations: 1.847 MB / 1.062 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003067/0.3838, allocations: 2.205 MB / 1.065 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0006858/0.3845, allocations: 428 kB / 1.065 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001869/0.3864, allocations: 0.9128 MB / 1.066 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001594/0.388, allocations: 1.661 MB / 1.067 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001859/0.3899, allocations: 1.708 MB / 1.069 GB, free: 6.082 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.573/0.9628, allocations: 6.164 MB / 1.075 GB, free: 29.38 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 1.55e-05/0.9629, allocations: 0.5625 kB / 1.075 GB, free: 29.38 MB / 0.8419 GB Notification: Performance of FrontEnd: time 5.57e-06/0.963, allocations: 0 / 1.075 GB, free: 29.38 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.000344/0.9633, allocations: 0.6875 kB / 1.075 GB, free: 29.38 MB / 0.8419 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.01059/0.9739, allocations: 3.042 MB / 1.078 GB, free: 28.36 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.974, allocations: 9.453 kB / 1.078 GB, free: 28.36 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003417/0.9774, allocations: 0.6825 MB / 1.079 GB, free: 28.21 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00435/0.9818, allocations: 1.568 MB / 1.08 GB, free: 27.84 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/0.982, allocations: 219.9 kB / 1.081 GB, free: 27.83 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007481/0.9828, allocations: 287.1 kB / 1.081 GB, free: 27.83 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01138/0.9941, allocations: 5.04 MB / 1.086 GB, free: 27.31 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.347e-05/0.9943, allocations: 14.38 kB / 1.086 GB, free: 27.3 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003496/0.9946, allocations: 123.7 kB / 1.086 GB, free: 27.3 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003398/0.995, allocations: 208 kB / 1.086 GB, free: 27.3 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008652/1.004, allocations: 4.174 MB / 1.09 GB, free: 27.27 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02896/1.033, allocations: 22.86 MB / 1.112 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003302/1.036, allocations: 1.71 MB / 1.114 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001727/1.038, allocations: 1.137 MB / 1.115 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001605/1.038, allocations: 99.59 kB / 1.115 GB, free: 9.449 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/1.038, allocations: 49.02 kB / 1.115 GB, free: 9.398 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=84): time 2.835e-06/1.038, allocations: 0 / 1.115 GB, free: 9.398 MB / 0.8419 GB Notification: Performance of matching and sorting (n=87): time 0.006686/1.045, allocations: 3.981 MB / 1.119 GB, free: 7.41 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.93e-05/1.045, allocations: 143.4 kB / 1.119 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/1.046, allocations: 0.8464 MB / 1.12 GB, free: 6.902 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.000102/1.046, allocations: 45.83 kB / 1.12 GB, free: 6.855 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000688/1.047, allocations: 1.162 MB / 1.121 GB, free: 5.98 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002824/1.047, allocations: 315.9 kB / 1.122 GB, free: 5.742 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000455/1.048, allocations: 267.5 kB / 1.122 GB, free: 5.625 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001593/1.048, allocations: 405.4 kB / 1.122 GB, free: 5.273 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/1.049, allocations: 0.7997 MB / 1.123 GB, free: 4.996 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/1.05, allocations: 1.294 MB / 1.124 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002536/1.053, allocations: 2.144 MB / 1.127 GB, free: 2.918 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.327e-06/1.053, allocations: 3.906 kB / 1.127 GB, free: 2.918 MB / 0.8419 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003602/1.056, allocations: 2.173 MB / 1.129 GB, free: 2.176 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.174e-05/1.057, allocations: 13.59 kB / 1.129 GB, free: 2.176 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-05/1.057, allocations: 14 kB / 1.129 GB, free: 2.176 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.64e-05/1.057, allocations: 20.41 kB / 1.129 GB, free: 2.176 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/1.058, allocations: 411.1 kB / 1.129 GB, free: 2.164 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-05/1.058, allocations: 33.47 kB / 1.129 GB, free: 2.164 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/1.06, allocations: 197.5 kB / 1.129 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/1.06, allocations: 58.58 kB / 1.129 GB, free: 2.113 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002864/1.063, allocations: 1.661 MB / 1.131 GB, free: 1.477 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001211/1.064, allocations: 1.167 MB / 1.132 GB, free: 0.6055 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002757/1.066, allocations: 1.902 MB / 1.134 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.242e-05/1.067, allocations: 4.906 kB / 1.134 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=156) (initialization_lambda0): time 0.003488/1.07, allocations: 1.886 MB / 1.136 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/1.07, allocations: 11.72 kB / 1.136 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.361e-05/1.07, allocations: 19.36 kB / 1.136 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.335e-05/1.07, allocations: 22.62 kB / 1.136 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/1.071, allocations: 364 kB / 1.136 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.785e-05/1.071, allocations: 29.44 kB / 1.136 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/1.073, allocations: 160.9 kB / 1.136 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.938e-05/1.073, allocations: 58.34 kB / 1.136 GB, free: 14.89 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.0004403/1.073, allocations: 265.5 kB / 1.137 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002441/1.073, allocations: 103.4 kB / 1.137 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003167/1.077, allocations: 1.844 MB / 1.139 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.574e-05/1.077, allocations: 16.28 kB / 1.139 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/1.077, allocations: 1.188 kB / 1.139 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/1.077, allocations: 7.219 kB / 1.139 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/1.09, allocations: 9.573 MB / 1.148 GB, free: 8.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/1.091, allocations: 11.12 kB / 1.148 GB, free: 8.832 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/1.092, allocations: 313 kB / 1.148 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.669e-05/1.092, allocations: 16.88 kB / 1.148 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-05/1.092, allocations: 29.09 kB / 1.148 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.765e-05/1.092, allocations: 26.58 kB / 1.148 GB, free: 8.719 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.028e-05/1.092, allocations: 19.53 kB / 1.148 GB, free: 8.715 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/1.094, allocations: 2.398 MB / 1.151 GB, free: 7.031 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007883/1.095, allocations: 375.7 kB / 1.151 GB, free: 6.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/1.095, allocations: 34.44 kB / 1.151 GB, free: 6.754 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008777/1.096, allocations: 138.4 kB / 1.151 GB, free: 6.684 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/1.096, allocations: 99.7 kB / 1.151 GB, free: 6.633 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.871e-05/1.097, allocations: 34.22 kB / 1.151 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0006738/1.097, allocations: 0.5902 MB / 1.152 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/1.097, allocations: 0 / 1.152 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.003118/1.1, allocations: 0.7481 MB / 1.153 GB, free: 6.25 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.0002757/1.101, allocations: 144.2 kB / 1.153 GB, free: 6.141 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.003914/1.105, allocations: 2.866 MB / 1.156 GB, free: 4.832 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/1.105, allocations: 2.688 kB / 1.156 GB, free: 4.832 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.00122/1.106, allocations: 0.9048 MB / 1.157 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/1.108, allocations: 309.7 kB / 1.157 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007431/1.115, allocations: 4.993 MB / 1.162 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001884/1.117, allocations: 2.124 MB / 1.164 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.002097/1.119, allocations: 0.7305 MB / 1.164 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003765/1.12, allocations: 87.42 kB / 1.165 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of SimCode: time 6.51e-07/1.12, allocations: 0 / 1.165 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of Templates: time 0.02815/1.148, allocations: 17.37 MB / 1.182 GB, free: 12.85 MB / 0.8887 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches