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.00164/0.00164, 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.001625/0.001626, allocations: 192.4 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.448/1.448, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.513/2.513, allocations: 390.2 MB / 0.6646 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 67.89 kB / 0.8125 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7009/0.7023, allocations: 140.4 MB / 0.9496 GB, free: 9.402 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_N): time 0.02337/0.7257, allocations: 20.42 MB / 0.9695 GB, free: 9.816 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01576/0.7415, allocations: 7.693 MB / 0.977 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002472/0.744, allocations: 61.5 kB / 0.9771 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004286/0.7483, allocations: 1.357 MB / 0.9784 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.004382/0.7527, allocations: 0.9919 MB / 0.9794 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.006195/0.759, allocations: 2.002 MB / 0.9814 GB, free: 316 kB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.006191/0.7652, allocations: 4.324 MB / 0.9856 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008858/0.7741, allocations: 6.249 MB / 0.9917 GB, free: 6.707 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003007/0.7771, allocations: 1.843 MB / 0.9935 GB, free: 4.859 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003839/0.781, allocations: 2.193 MB / 0.9956 GB, free: 2.66 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.001319/0.7823, allocations: 428 kB / 0.996 GB, free: 2.242 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002587/0.7849, allocations: 0.9441 MB / 0.9969 GB, free: 1.297 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.001877/0.7868, allocations: 1.665 MB / 0.9986 GB, free: 15.63 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002044/0.7889, allocations: 1.712 MB / 1 GB, free: 13.91 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.005683/0.7945, allocations: 6.143 MB / 1.006 GB, free: 7.75 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.7946, allocations: 0 / 1.006 GB, free: 7.75 MB / 0.7637 GB Notification: Performance of FrontEnd: time 3.095e-06/0.7946, allocations: 0 / 1.006 GB, free: 7.75 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001107/0.7947, allocations: 3.938 kB / 1.006 GB, free: 7.746 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.005907/0.8006, allocations: 3.044 MB / 1.009 GB, free: 4.641 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.8007, allocations: 8.031 kB / 1.009 GB, free: 4.633 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003744/0.8044, allocations: 0.7506 MB / 1.01 GB, free: 3.879 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002599/0.807, allocations: 1.54 MB / 1.011 GB, free: 2.297 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.8072, allocations: 214.2 kB / 1.012 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004979/0.8077, allocations: 292.2 kB / 1.012 GB, free: 1.801 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008696/0.8164, allocations: 5.09 MB / 1.017 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.846e-05/0.8165, allocations: 7.938 kB / 1.017 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000345/0.8169, allocations: 128 kB / 1.017 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000232/0.8171, allocations: 204.6 kB / 1.017 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008346/0.8255, allocations: 4.224 MB / 1.021 GB, free: 7.949 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02681/0.8523, allocations: 23.07 MB / 1.044 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002814/0.8552, allocations: 1.727 MB / 1.046 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001559/0.8567, allocations: 1.141 MB / 1.047 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001609/0.8569, allocations: 105.7 kB / 1.047 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.857, allocations: 51.22 kB / 1.047 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=84): time 3.406e-06/0.857, allocations: 0 / 1.047 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of matching and sorting (n=87): time 0.005761/0.8627, allocations: 4.012 MB / 1.051 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.006e-05/0.8628, allocations: 141.2 kB / 1.051 GB, free: 7.422 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.8639, allocations: 0.8681 MB / 1.052 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 8.435e-05/0.864, allocations: 41.7 kB / 1.052 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007147/0.8647, allocations: 1.158 MB / 1.053 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002807/0.865, allocations: 315.6 kB / 1.053 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004439/0.8655, allocations: 274.6 kB / 1.053 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001812/0.8657, allocations: 402.7 kB / 1.054 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.8669, allocations: 0.8295 MB / 1.055 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/0.8685, allocations: 1.306 MB / 1.056 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002802/0.8713, allocations: 2.171 MB / 1.058 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.8714, allocations: 4 kB / 1.058 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003475/0.8749, allocations: 2.21 MB / 1.06 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.8749, allocations: 12 kB / 1.06 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/0.8749, allocations: 12 kB / 1.06 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.773e-05/0.875, allocations: 24 kB / 1.06 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.8766, allocations: 416 kB / 1.061 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.017e-05/0.8766, allocations: 31.86 kB / 1.061 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.8779, allocations: 215.2 kB / 1.061 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.878, allocations: 63.98 kB / 1.061 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002535/0.8806, allocations: 1.677 MB / 1.063 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001541/0.8821, allocations: 1.194 MB / 1.064 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002629/0.8848, allocations: 1.902 MB / 1.066 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.928e-06/0.8848, allocations: 7.938 kB / 1.066 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of matching and sorting (n=156) (initialization_lambda0): time 0.003022/0.8878, allocations: 1.922 MB / 1.068 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.8879, allocations: 16.22 kB / 1.068 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/0.8879, allocations: 16 kB / 1.068 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.8879, allocations: 20 kB / 1.068 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.8893, allocations: 367.3 kB / 1.068 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.829e-05/0.8893, allocations: 27.92 kB / 1.068 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/0.8906, allocations: 183.3 kB / 1.068 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.122e-05/0.8907, allocations: 60 kB / 1.068 GB, free: 4.793 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.0003589/0.891, allocations: 271.7 kB / 1.068 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002306/0.8913, allocations: 98.78 kB / 1.069 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002813/0.8941, allocations: 1.846 MB / 1.07 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.8941, allocations: 12 kB / 1.07 GB, free: 2.547 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.8941, allocations: 4 kB / 1.07 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.8942, allocations: 7.984 kB / 1.07 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01376/0.9079, allocations: 9.588 MB / 1.08 GB, free: 8.695 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.538e-05/0.908, allocations: 16.06 kB / 1.08 GB, free: 8.68 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.9092, allocations: 311.4 kB / 1.08 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.961e-05/0.9092, allocations: 16 kB / 1.08 GB, free: 8.359 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.44e-05/0.9093, allocations: 28 kB / 1.08 GB, free: 8.332 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.968e-05/0.9093, allocations: 27.86 kB / 1.08 GB, free: 8.305 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.216e-05/0.9093, allocations: 15.94 kB / 1.08 GB, free: 8.289 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002928/0.9123, allocations: 2.402 MB / 1.082 GB, free: 5.727 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006035/0.9129, allocations: 375.6 kB / 1.083 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.9131, allocations: 31.98 kB / 1.083 GB, free: 5.309 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009765/0.914, allocations: 151.8 kB / 1.083 GB, free: 5.16 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.9142, allocations: 95.78 kB / 1.083 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.902e-05/0.9143, allocations: 32 kB / 1.083 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0008729/0.9152, allocations: 0.6199 MB / 1.084 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9152, allocations: 0 / 1.084 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002421/0.9176, allocations: 0.75 MB / 1.084 GB, free: 3.672 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.0002233/0.9179, allocations: 160 kB / 1.085 GB, free: 3.504 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004498/0.9224, allocations: 3.033 MB / 1.088 GB, free: 488 kB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/0.9224, allocations: 5.375 kB / 1.088 GB, free: 484 kB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.9236, allocations: 0.9113 MB / 1.088 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001717/0.9253, allocations: 315.7 kB / 1.089 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007106/0.9325, allocations: 5.047 MB / 1.094 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001898/0.9344, allocations: 2.127 MB / 1.096 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.00191/0.9363, allocations: 0.7462 MB / 1.097 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003799/0.9367, allocations: 83.42 kB / 1.097 GB, free: 7.055 MB / 0.8575 GB Notification: Performance of SimCode: time 5.41e-07/0.9367, allocations: 4 kB / 1.097 GB, free: 7.051 MB / 0.8575 GB Notification: Performance of Templates: time 0.03359/0.9703, allocations: 17.92 MB / 1.114 GB, free: 5.289 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