Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.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.Impedances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009013/0.0009013, allocations: 91.28 kB / 15.06 MB, free: 1.078 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.0009532/0.0009532, allocations: 176.7 kB / 15.95 MB, free: 188 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.3 MB / 240 MB, free: 5.355 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.696/2.696, allocations: 390.9 MB / 0.666 GB, free: 2.57 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.0003833, allocations: 16 kB / 0.8154 GB, free: 13.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9016/0.902, allocations: 142.4 MB / 0.9544 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances): time 0.005024/0.9071, allocations: 4.296 MB / 0.9586 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004204/0.9113, allocations: 2.334 MB / 0.9609 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007143/0.9121, allocations: 24.06 kB / 0.9609 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004095/0.9125, allocations: 94.14 kB / 0.961 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00133/0.9139, allocations: 348.2 kB / 0.9614 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009647/0.9149, allocations: 295.9 kB / 0.9616 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001203/0.9161, allocations: 0.9754 MB / 0.9626 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007716/0.9168, allocations: 429.3 kB / 0.963 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004778/0.9173, allocations: 289.9 kB / 0.9633 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004124/0.9178, allocations: 329.7 kB / 0.9636 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.546e-05/0.9178, allocations: 19.62 kB / 0.9636 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005437/0.9184, allocations: 196 kB / 0.9638 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.9185, allocations: 160.6 kB / 0.964 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.9187, allocations: 140.5 kB / 0.9641 GB, free: 492 kB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005719/0.9192, allocations: 0.6419 MB / 0.9647 GB, free: 56 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.9192, allocations: 0 / 0.9647 GB, free: 56 kB / 0.7169 GB Notification: Performance of FrontEnd: time 1.683e-06/0.9193, allocations: 0 / 0.9647 GB, free: 56 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.587e-06/0.9193, allocations: 0 / 0.9647 GB, free: 56 kB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001241/0.9205, allocations: 0.8489 MB / 0.9655 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.9206, allocations: 13.12 kB / 0.9656 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001225/0.9218, allocations: 199.1 kB / 0.9658 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007246/0.9225, allocations: 490.5 kB / 0.9662 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.655e-05/0.9226, allocations: 39.14 kB / 0.9663 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.42e-05/0.9227, allocations: 40.62 kB / 0.9663 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.9238, allocations: 0.8479 MB / 0.9671 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.592e-05/0.9239, allocations: 7.75 kB / 0.9671 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.193e-05/0.9239, allocations: 23.73 kB / 0.9672 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001036/0.924, allocations: 70.19 kB / 0.9672 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009075/0.9249, allocations: 0.5686 MB / 0.9678 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00477/0.9297, allocations: 5.652 MB / 0.9733 GB, free: 8.324 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008092/0.9306, allocations: 457.4 kB / 0.9737 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003592/0.9309, allocations: 226.9 kB / 0.9739 GB, free: 7.973 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.113e-05/0.931, allocations: 2.844 kB / 0.9739 GB, free: 7.973 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.931, allocations: 33.22 kB / 0.974 GB, free: 7.934 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=32): time 2.074e-06/0.931, allocations: 0 / 0.974 GB, free: 7.934 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33): time 0.002902/0.9339, allocations: 1.506 MB / 0.9755 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/0.934, allocations: 55.66 kB / 0.9755 GB, free: 6.77 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007521/0.9347, allocations: 0.493 MB / 0.976 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/0.9348, allocations: 30.64 kB / 0.976 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003107/0.9351, allocations: 363.8 kB / 0.9764 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.9353, allocations: 118.8 kB / 0.9765 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.908e-05/0.9353, allocations: 14.16 kB / 0.9765 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002136/0.9355, allocations: 364.5 kB / 0.9768 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003387/0.9359, allocations: 195.3 kB / 0.977 GB, free: 5.539 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005685/0.9364, allocations: 438.4 kB / 0.9774 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000519/0.937, allocations: 268.1 kB / 0.9777 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.937, allocations: 1.875 kB / 0.9777 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001641/0.9386, allocations: 0.8087 MB / 0.9785 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.9387, allocations: 7.5 kB / 0.9785 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-05/0.9387, allocations: 13.38 kB / 0.9785 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005353/0.9393, allocations: 158.7 kB / 0.9787 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004599/0.9397, allocations: 126.2 kB / 0.9788 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003546/0.9433, allocations: 4.037 MB / 0.9827 GB, free: 276 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004662/0.9438, allocations: 29.05 kB / 0.9828 GB, free: 264 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.53e-05/0.9438, allocations: 31.23 kB / 0.9828 GB, free: 256 kB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003352/0.9442, allocations: 210.8 kB / 0.983 GB, free: 76 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001841/0.9444, allocations: 70.2 kB / 0.983 GB, free: 36 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.9455, allocations: 0.596 MB / 0.9836 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.9456, allocations: 7.656 kB / 0.9836 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.9456, allocations: 1.594 kB / 0.9836 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.208e-06/0.9456, allocations: 3.984 kB / 0.9836 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001903/0.9475, allocations: 1.254 MB / 0.9849 GB, free: 14.74 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.9475, allocations: 1.344 kB / 0.9849 GB, free: 14.74 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000242/0.9478, allocations: 59.42 kB / 0.9849 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000433/0.9482, allocations: 139.6 kB / 0.9851 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.9482, allocations: 8.062 kB / 0.9851 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003476/0.9517, allocations: 4.027 MB / 0.989 GB, free: 10.25 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.9517, allocations: 0 / 0.989 GB, free: 10.25 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.9529, allocations: 0.7124 MB / 0.9897 GB, free: 9.48 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002821/0.9532, allocations: 168.3 kB / 0.9899 GB, free: 9.297 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.016e-05/0.9533, allocations: 12 kB / 0.9899 GB, free: 9.285 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002303/0.9535, allocations: 19.97 kB / 0.9899 GB, free: 9.266 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.561e-05/0.9536, allocations: 35.89 kB / 0.9899 GB, free: 9.23 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.178e-05/0.9537, allocations: 12 kB / 0.9899 GB, free: 9.219 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000419/0.9541, allocations: 338.8 kB / 0.9903 GB, free: 8.891 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.6e-07/0.9541, allocations: 0 / 0.9903 GB, free: 8.891 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007111/0.9548, allocations: 136 kB / 0.9904 GB, free: 8.758 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001641/0.955, allocations: 116.8 kB / 0.9905 GB, free: 8.637 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001528/0.9565, allocations: 1.029 MB / 0.9915 GB, free: 7.527 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.9565, allocations: 0 / 0.9915 GB, free: 7.527 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008344/0.9574, allocations: 0.742 MB / 0.9922 GB, free: 6.703 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009685/0.9583, allocations: 181.7 kB / 0.9924 GB, free: 6.527 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001968/0.9603, allocations: 1.241 MB / 0.9936 GB, free: 5.238 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000523/0.9609, allocations: 0.9098 MB / 0.9945 GB, free: 4.297 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003411/0.9612, allocations: 125.3 kB / 0.9946 GB, free: 4.172 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.9613, allocations: 39.42 kB / 0.9947 GB, free: 4.137 MB / 0.7481 GB Notification: Performance of SimCode: time 1.082e-06/0.9613, allocations: 4 kB / 0.9947 GB, free: 4.133 MB / 0.7481 GB Notification: Performance of Templates: time 0.01442/0.9758, allocations: 7.043 MB / 1.002 GB, free: 13.18 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_Impedances.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches