Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001573/0.001573, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001775/0.001775, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.375/1.375, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.82/2.82, allocations: 472.7 MB / 0.7452 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 68.47 kB / 0.9121 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3838, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N): time 0.02397/0.4078, allocations: 20.43 MB / 1.088 GB, free: 5.887 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01301/0.4209, allocations: 7.693 MB / 1.096 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001814/0.4227, allocations: 59.81 kB / 1.096 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00371/0.4265, allocations: 1.357 MB / 1.097 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002905/0.4294, allocations: 0.9996 MB / 1.098 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.005081/0.4345, allocations: 1.998 MB / 1.1 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00646/0.441, allocations: 4.331 MB / 1.104 GB, free: 5.41 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009363/0.4504, allocations: 6.251 MB / 1.11 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002733/0.4531, allocations: 1.835 MB / 1.112 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003355/0.4565, allocations: 2.201 MB / 1.114 GB, free: 11.04 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001104/0.4576, allocations: 428 kB / 1.115 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00224/0.4598, allocations: 0.9402 MB / 1.116 GB, free: 9.68 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.002134/0.462, allocations: 1.653 MB / 1.117 GB, free: 8.023 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.002861/0.4649, allocations: 1.708 MB / 1.119 GB, free: 6.309 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.006269/0.4711, allocations: 6.151 MB / 1.125 GB, free: 144 kB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.4712, allocations: 4 kB / 1.125 GB, free: 140 kB / 0.8731 GB Notification: Performance of FrontEnd: time 1.683e-06/0.4712, allocations: 0 / 1.125 GB, free: 140 kB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001662/0.4714, allocations: 0 / 1.125 GB, free: 140 kB / 0.8731 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.006186/0.4775, allocations: 3.044 MB / 1.128 GB, free: 13.03 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.4776, allocations: 8.031 kB / 1.128 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003522/0.4811, allocations: 0.7429 MB / 1.129 GB, free: 12.28 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002457/0.4836, allocations: 1.551 MB / 1.13 GB, free: 10.68 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.4838, allocations: 218.2 kB / 1.13 GB, free: 10.47 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004571/0.4842, allocations: 288.3 kB / 1.131 GB, free: 10.19 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007517/0.4917, allocations: 5.071 MB / 1.136 GB, free: 4.926 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.233e-05/0.4918, allocations: 23.77 kB / 1.136 GB, free: 4.902 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003195/0.4922, allocations: 120 kB / 1.136 GB, free: 4.785 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000228/0.4924, allocations: 212.6 kB / 1.136 GB, free: 4.574 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006554/0.499, allocations: 4.221 MB / 1.14 GB, free: 348 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02355/0.5225, allocations: 23.07 MB / 1.163 GB, free: 7.125 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002813/0.5254, allocations: 1.743 MB / 1.164 GB, free: 5.348 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001586/0.527, allocations: 1.13 MB / 1.165 GB, free: 4.207 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001411/0.5271, allocations: 101.7 kB / 1.165 GB, free: 4.09 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.5272, allocations: 51.09 kB / 1.165 GB, free: 4.031 MB / 0.92 GB Notification: Performance of pre-optimization done (n=84): time 2.975e-06/0.5272, allocations: 0 / 1.165 GB, free: 4.031 MB / 0.92 GB Notification: Performance of matching and sorting (n=87): time 0.006129/0.5333, allocations: 4.012 MB / 1.169 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.98e-05/0.5334, allocations: 137.2 kB / 1.17 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.5347, allocations: 0.8683 MB / 1.17 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 8.307e-05/0.5348, allocations: 41.7 kB / 1.17 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007188/0.5355, allocations: 1.162 MB / 1.172 GB, free: 13.72 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002855/0.5358, allocations: 311.6 kB / 1.172 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004679/0.5363, allocations: 278.5 kB / 1.172 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001762/0.5365, allocations: 406.7 kB / 1.173 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001276/0.5378, allocations: 0.8257 MB / 1.173 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00164/0.5394, allocations: 1.31 MB / 1.175 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002874/0.5423, allocations: 2.171 MB / 1.177 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.5423, allocations: 4 kB / 1.177 GB, free: 8 MB / 0.9356 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003508/0.5458, allocations: 2.207 MB / 1.179 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.5459, allocations: 12.19 kB / 1.179 GB, free: 5.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/0.5459, allocations: 16 kB / 1.179 GB, free: 5.754 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.356e-05/0.5459, allocations: 20 kB / 1.179 GB, free: 5.734 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/0.5476, allocations: 419.3 kB / 1.179 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.372e-05/0.5476, allocations: 23.94 kB / 1.179 GB, free: 5.301 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.549, allocations: 223.2 kB / 1.18 GB, free: 5.082 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/0.5491, allocations: 63.92 kB / 1.18 GB, free: 5.02 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002453/0.5516, allocations: 1.679 MB / 1.181 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001408/0.553, allocations: 1.186 MB / 1.182 GB, free: 1.914 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002429/0.5554, allocations: 1.902 MB / 1.184 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.125e-05/0.5554, allocations: 7.938 kB / 1.184 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of matching and sorting (n=156) (initialization_lambda0): time 0.003096/0.5585, allocations: 1.929 MB / 1.186 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.5586, allocations: 12 kB / 1.186 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.5586, allocations: 16 kB / 1.186 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.5586, allocations: 20 kB / 1.186 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/0.56, allocations: 363.8 kB / 1.187 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.994e-05/0.56, allocations: 39.86 kB / 1.187 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.5613, allocations: 171.4 kB / 1.187 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.5614, allocations: 55.98 kB / 1.187 GB, free: 13.2 MB / 0.9512 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.0003425/0.5617, allocations: 275.7 kB / 1.187 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000255/0.562, allocations: 98.78 kB / 1.187 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002914/0.5649, allocations: 1.854 MB / 1.189 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.565, allocations: 8.188 kB / 1.189 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.565, allocations: 0 / 1.189 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.565, allocations: 15.95 kB / 1.189 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01307/0.5781, allocations: 9.584 MB / 1.198 GB, free: 1.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.914e-05/0.5781, allocations: 12 kB / 1.198 GB, free: 1.078 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/0.5793, allocations: 319.3 kB / 1.199 GB, free: 0.7656 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-05/0.5794, allocations: 16 kB / 1.199 GB, free: 0.75 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.596e-05/0.5795, allocations: 28 kB / 1.199 GB, free: 0.7227 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.82e-05/0.5795, allocations: 28.33 kB / 1.199 GB, free: 0.6953 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.171e-05/0.5795, allocations: 19.94 kB / 1.199 GB, free: 0.6758 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002964/0.5825, allocations: 2.402 MB / 1.201 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006997/0.5832, allocations: 379.6 kB / 1.201 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002339/0.5835, allocations: 35.92 kB / 1.202 GB, free: 13.69 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.5845, allocations: 139.7 kB / 1.202 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.5847, allocations: 91.67 kB / 1.202 GB, free: 13.46 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.37e-05/0.5848, allocations: 36 kB / 1.202 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0009446/0.5858, allocations: 0.6161 MB / 1.202 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5858, allocations: 0 / 1.202 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002744/0.5885, allocations: 0.7539 MB / 1.203 GB, free: 12.06 MB / 0.9669 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.0002799/0.5888, allocations: 147.4 kB / 1.203 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.004711/0.5936, allocations: 3.042 MB / 1.206 GB, free: 8.875 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/0.5936, allocations: 8.125 kB / 1.206 GB, free: 8.867 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001283/0.5949, allocations: 0.9156 MB / 1.207 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001958/0.5968, allocations: 306.4 kB / 1.207 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00869/0.6055, allocations: 5.046 MB / 1.212 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002464/0.608, allocations: 2.127 MB / 1.214 GB, free: 288 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.002091/0.6101, allocations: 0.7502 MB / 1.215 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000411/0.6106, allocations: 83.41 kB / 1.215 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of SimCode: time 7.32e-07/0.6106, allocations: 0 / 1.215 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of Templates: time 0.03215/0.6427, allocations: 17.93 MB / 1.233 GB, free: 13.68 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches