Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.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.ThreePhasesBalanced.Loads.Examples.ThreePhases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_Y.S.1.|sen_Y.S.2.|sen_D.S.1.|sen_D.S.2.|errorY|errorD",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_Y.S.1.|sen_Y.S.2.|sen_D.S.1.|sen_D.S.2.|errorY|errorD",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 92.16 kB / 16.02 MB, free: 80 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.001465/0.001465, allocations: 182 kB / 16.92 MB, free: 6.922 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.391/1.391, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.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.397/2.397, allocations: 390.9 MB / 0.667 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00037/0.0003702, allocations: 8 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6876/0.688, allocations: 142.4 MB / 0.9557 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases): time 0.009432/0.6974, allocations: 10.55 MB / 0.966 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.009325/0.7068, allocations: 5.769 MB / 0.9716 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00143/0.7083, allocations: 45.97 kB / 0.9717 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0008319/0.7091, allocations: 239.9 kB / 0.9719 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003528/0.7127, allocations: 1.068 MB / 0.973 GB, free: 9.988 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002246/0.7149, allocations: 0.7447 MB / 0.9737 GB, free: 9.426 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003982/0.7189, allocations: 2.852 MB / 0.9765 GB, free: 7.859 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004338/0.7233, allocations: 2.348 MB / 0.9788 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001575/0.7248, allocations: 0.7013 MB / 0.9795 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001444/0.7263, allocations: 0.8482 MB / 0.9803 GB, free: 5.453 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001625/0.7265, allocations: 59.84 kB / 0.9803 GB, free: 5.453 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002887/0.7294, allocations: 1.434 MB / 0.9817 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0004931/0.7299, allocations: 474.5 kB / 0.9822 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0007719/0.7307, allocations: 0.7319 MB / 0.9829 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002296/0.733, allocations: 1.841 MB / 0.9847 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.733, allocations: 4 kB / 0.9847 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.853e-06/0.733, allocations: 0 / 0.9847 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.327e-05/0.733, allocations: 0 / 0.9847 GB, free: 1.539 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.002588/0.7356, allocations: 1.599 MB / 0.9863 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.7357, allocations: 12.03 kB / 0.9863 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004284/0.7399, allocations: 0.67 MB / 0.9869 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001408/0.7414, allocations: 0.9106 MB / 0.9878 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.789e-05/0.7415, allocations: 98.89 kB / 0.9879 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001971/0.7417, allocations: 128.3 kB / 0.988 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003102/0.7448, allocations: 2.206 MB / 0.9902 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.413e-05/0.7448, allocations: 15.84 kB / 0.9902 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.745, allocations: 59.97 kB / 0.9903 GB, free: 11.51 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002104/0.7452, allocations: 166.2 kB / 0.9904 GB, free: 11.35 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002813/0.748, allocations: 1.871 MB / 0.9923 GB, free: 9.469 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01193/0.76, allocations: 12.48 MB / 1.004 GB, free: 12.04 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004141/0.7641, allocations: 1.961 MB / 1.006 GB, free: 10.07 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008237/0.765, allocations: 0.6049 MB / 1.007 GB, free: 9.457 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001651/0.7651, allocations: 106.1 kB / 1.007 GB, free: 9.336 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.7652, allocations: 39.56 kB / 1.007 GB, free: 9.289 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=103): time 3.016e-06/0.7652, allocations: 3.938 kB / 1.007 GB, free: 9.285 MB / 0.7637 GB Notification: Performance of matching and sorting (n=110): time 0.006043/0.7712, allocations: 3.722 MB / 1.011 GB, free: 5.398 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.7713, allocations: 60.41 kB / 1.011 GB, free: 5.328 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001115/0.7724, allocations: 0.9243 MB / 1.012 GB, free: 4.387 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 8.799e-05/0.7725, allocations: 41.7 kB / 1.012 GB, free: 4.34 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005575/0.7731, allocations: 0.7276 MB / 1.012 GB, free: 3.602 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003235/0.7734, allocations: 390.4 kB / 1.013 GB, free: 3.215 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.7736, allocations: 121.6 kB / 1.013 GB, free: 3.09 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.7737, allocations: 301.1 kB / 1.013 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000899/0.7746, allocations: 0.6168 MB / 1.014 GB, free: 2.176 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.7758, allocations: 1.109 MB / 1.015 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002289/0.7781, allocations: 1.824 MB / 1.017 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.7782, allocations: 8 kB / 1.017 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003346/0.7815, allocations: 2.096 MB / 1.019 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/0.7815, allocations: 12 kB / 1.019 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/0.7816, allocations: 16 kB / 1.019 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007909/0.7824, allocations: 266.6 kB / 1.019 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/0.7836, allocations: 371.4 kB / 1.019 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008151/0.7917, allocations: 10.77 MB / 1.03 GB, free: 156 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/0.7931, allocations: 127.8 kB / 1.03 GB, free: 28 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.7933, allocations: 73.59 kB / 1.03 GB, free: 15.95 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (187): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006979/0.794, allocations: 405 kB / 1.03 GB, free: 15.55 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.7942, allocations: 130.5 kB / 1.031 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00289/0.7971, allocations: 1.677 MB / 1.032 GB, free: 13.71 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.7971, allocations: 12 kB / 1.032 GB, free: 13.7 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.7971, allocations: 0 / 1.032 GB, free: 13.7 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.7971, allocations: 7.969 kB / 1.032 GB, free: 13.7 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004794/0.8019, allocations: 3.298 MB / 1.035 GB, free: 10.25 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.8019, allocations: 4 kB / 1.035 GB, free: 10.25 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008124/0.8027, allocations: 219.6 kB / 1.036 GB, free: 10.04 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006977/0.8035, allocations: 250.9 kB / 1.036 GB, free: 9.766 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.034e-05/0.8035, allocations: 24 kB / 1.036 GB, free: 9.742 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008288/0.8118, allocations: 10.75 MB / 1.046 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.8119, allocations: 12.16 kB / 1.046 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00291/0.8148, allocations: 1.796 MB / 1.048 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006789/0.8155, allocations: 319.4 kB / 1.049 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.8157, allocations: 27.98 kB / 1.049 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007155/0.8164, allocations: 99.75 kB / 1.049 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.8166, allocations: 96.7 kB / 1.049 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.379e-05/0.8167, allocations: 36 kB / 1.049 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007972/0.8175, allocations: 0.6138 MB / 1.049 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8175, allocations: 0 / 1.049 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001484/0.819, allocations: 399.9 kB / 1.05 GB, free: 10.41 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (109): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002942/0.8193, allocations: 147 kB / 1.05 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003671/0.823, allocations: 2.493 MB / 1.052 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.823, allocations: 0 / 1.052 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.002112/0.8251, allocations: 1.629 MB / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002527/0.8277, allocations: 329.6 kB / 1.054 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004761/0.8324, allocations: 3.501 MB / 1.058 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009806/0.8334, allocations: 1.327 MB / 1.059 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004331/0.8339, allocations: 119.3 kB / 1.059 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of SimCode: time 9.72e-07/0.8339, allocations: 3.938 kB / 1.059 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of Templates: time 0.06716/0.9011, allocations: 58.99 MB / 1.117 GB, free: 5.527 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_ThreePhases.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches