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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001609/0.001608, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002291/0.002291, allocations: 193.7 kB / 16.14 MB, free: 6.699 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.426/1.426, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.354/2.354, allocations: 390.2 MB / 0.6642 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.89 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6792/0.6804, allocations: 140.4 MB / 0.9489 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N): time 0.02286/0.7034, allocations: 20.28 MB / 0.9687 GB, free: 9.738 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01478/0.7182, allocations: 7.724 MB / 0.9763 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002882/0.7211, allocations: 51.66 kB / 0.9763 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.003941/0.7251, allocations: 1.26 MB / 0.9775 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003656/0.7288, allocations: 0.9444 MB / 0.9785 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00585/0.7347, allocations: 1.837 MB / 0.9803 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.007274/0.742, allocations: 6.448 MB / 0.9866 GB, free: 11.5 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01037/0.7524, allocations: 6.869 MB / 0.9933 GB, free: 4.562 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002722/0.7551, allocations: 1.542 MB / 0.9948 GB, free: 3.016 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004215/0.7594, allocations: 2.251 MB / 0.997 GB, free: 0.7578 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.001165/0.7605, allocations: 292 kB / 0.9973 GB, free: 484 kB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002739/0.7633, allocations: 0.9749 MB / 0.9982 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002565/0.7659, allocations: 1.517 MB / 0.9997 GB, free: 13.98 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.003656/0.7696, allocations: 1.571 MB / 1.001 GB, free: 12.4 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.008235/0.7778, allocations: 6.096 MB / 1.007 GB, free: 6.285 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.7779, allocations: 4 kB / 1.007 GB, free: 6.281 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.353e-06/0.7779, allocations: 0 / 1.007 GB, free: 6.281 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001915/0.7781, allocations: 4 kB / 1.007 GB, free: 6.277 MB / 0.7637 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.008799/0.7869, allocations: 3.044 MB / 1.01 GB, free: 3.172 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.7869, allocations: 12.02 kB / 1.01 GB, free: 3.16 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004382/0.7913, allocations: 0.7467 MB / 1.011 GB, free: 2.41 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004514/0.7959, allocations: 1.547 MB / 1.012 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003042/0.7962, allocations: 218.1 kB / 1.013 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001285/0.7975, allocations: 284.4 kB / 1.013 GB, free: 332 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01248/0.81, allocations: 5.09 MB / 1.018 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.574e-05/0.8101, allocations: 7.938 kB / 1.018 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006277/0.8108, allocations: 124 kB / 1.018 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002513/0.811, allocations: 208.6 kB / 1.018 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008335/0.8194, allocations: 4.224 MB / 1.022 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02883/0.8482, allocations: 23.06 MB / 1.045 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003433/0.8517, allocations: 1.739 MB / 1.047 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001696/0.8534, allocations: 1.137 MB / 1.048 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001885/0.8536, allocations: 97.75 kB / 1.048 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.8537, allocations: 51.14 kB / 1.048 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=84): time 4.809e-06/0.8537, allocations: 4 kB / 1.048 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=87): time 0.009178/0.8629, allocations: 4.008 MB / 1.052 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.807e-05/0.863, allocations: 137.7 kB / 1.052 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.8644, allocations: 0.872 MB / 1.053 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.000124/0.8646, allocations: 41.7 kB / 1.053 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008803/0.8655, allocations: 1.158 MB / 1.054 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003626/0.8658, allocations: 315.6 kB / 1.054 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000495/0.8663, allocations: 270.6 kB / 1.054 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002143/0.8666, allocations: 406.7 kB / 1.055 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/0.868, allocations: 0.8257 MB / 1.056 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.8697, allocations: 1.318 MB / 1.057 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002827/0.8725, allocations: 2.163 MB / 1.059 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/0.8725, allocations: 4 kB / 1.059 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003469/0.876, allocations: 2.211 MB / 1.061 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.876, allocations: 12 kB / 1.061 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.214e-05/0.8761, allocations: 16 kB / 1.061 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.572e-05/0.8761, allocations: 20 kB / 1.061 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/0.8778, allocations: 415.3 kB / 1.062 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.581e-05/0.8778, allocations: 31.86 kB / 1.062 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/0.8791, allocations: 219.3 kB / 1.062 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001273/0.8793, allocations: 60.08 kB / 1.062 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002696/0.882, allocations: 1.681 MB / 1.064 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001505/0.8835, allocations: 1.19 MB / 1.065 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002496/0.886, allocations: 1.902 MB / 1.067 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.667e-05/0.886, allocations: 7.938 kB / 1.067 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of matching and sorting (n=156) (initialization_lambda0): time 0.003194/0.8892, allocations: 1.925 MB / 1.068 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.8893, allocations: 8 kB / 1.068 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.316e-05/0.8893, allocations: 19.98 kB / 1.068 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.8893, allocations: 24 kB / 1.069 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.8906, allocations: 368.1 kB / 1.069 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.887e-05/0.8907, allocations: 31.86 kB / 1.069 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001324/0.892, allocations: 175.3 kB / 1.069 GB, free: 3.391 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/0.8922, allocations: 63.98 kB / 1.069 GB, free: 3.328 MB / 0.8262 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.0004433/0.8926, allocations: 263.8 kB / 1.069 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000355/0.893, allocations: 98.78 kB / 1.069 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002956/0.896, allocations: 1.862 MB / 1.071 GB, free: 1.086 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.896, allocations: 8 kB / 1.071 GB, free: 1.078 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.896, allocations: 7.984 kB / 1.071 GB, free: 1.07 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.896, allocations: 3.984 kB / 1.071 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/0.9104, allocations: 9.599 MB / 1.081 GB, free: 7.215 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.632e-05/0.9104, allocations: 8 kB / 1.081 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.9117, allocations: 312.2 kB / 1.081 GB, free: 6.902 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.651e-05/0.9117, allocations: 20 kB / 1.081 GB, free: 6.883 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.692e-05/0.9118, allocations: 32 kB / 1.081 GB, free: 6.852 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.209e-05/0.9118, allocations: 27.86 kB / 1.081 GB, free: 6.824 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-05/0.9119, allocations: 15.94 kB / 1.081 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003038/0.9149, allocations: 2.398 MB / 1.083 GB, free: 4.25 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000698/0.9156, allocations: 375.6 kB / 1.084 GB, free: 3.863 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000247/0.9159, allocations: 28 kB / 1.084 GB, free: 3.836 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.917, allocations: 143.7 kB / 1.084 GB, free: 3.695 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.9172, allocations: 87.67 kB / 1.084 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.56e-05/0.9173, allocations: 39.98 kB / 1.084 GB, free: 3.57 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001004/0.9183, allocations: 0.6122 MB / 1.085 GB, free: 2.965 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9183, allocations: 3.938 kB / 1.085 GB, free: 2.961 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.003204/0.9215, allocations: 0.7539 MB / 1.085 GB, free: 2.207 MB / 0.8419 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.000334/0.9219, allocations: 146.9 kB / 1.086 GB, free: 2.051 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004513/0.9264, allocations: 2.87 MB / 1.088 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.9264, allocations: 4 kB / 1.088 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001263/0.9277, allocations: 0.9192 MB / 1.089 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001849/0.9296, allocations: 279 kB / 1.089 GB, free: 14 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009167/0.9387, allocations: 6.205 MB / 1.096 GB, free: 7.613 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002446/0.9412, allocations: 2.131 MB / 1.098 GB, free: 5.449 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.002124/0.9434, allocations: 0.7579 MB / 1.098 GB, free: 4.688 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004419/0.9438, allocations: 83.42 kB / 1.098 GB, free: 4.605 MB / 0.8575 GB Notification: Performance of SimCode: time 9.01e-07/0.9438, allocations: 0 / 1.098 GB, free: 4.605 MB / 0.8575 GB Notification: Performance of Templates: time 0.03074/0.9746, allocations: 17.29 MB / 1.115 GB, free: 3.465 MB / 0.8731 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","/var/lib/jenkins/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