Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.OnePhase.Loads.Examples.TestImpedance,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.OnePhase.Loads.Examples.TestImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,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.OnePhase.Loads.Examples.TestImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 91.22 kB / 15.06 MB, free: 1.098 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.001509/0.001509, allocations: 172.7 kB / 15.95 MB, free: 208 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.635/1.635, allocations: 223.3 MB / 240 MB, free: 5.453 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.575/2.575, allocations: 390.9 MB / 0.666 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005473/0.0005475, allocations: 8 kB / 0.8154 GB, free: 13.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8314/0.832, allocations: 142.4 MB / 0.9544 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.00766/0.8397, allocations: 4.254 MB / 0.9586 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005594/0.8453, allocations: 2.299 MB / 0.9608 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005462/0.8459, allocations: 24.25 kB / 0.9609 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003714/0.8463, allocations: 93.98 kB / 0.961 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001437/0.8478, allocations: 348.2 kB / 0.9613 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.849, allocations: 278.3 kB / 0.9616 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001507/0.8505, allocations: 0.9641 MB / 0.9625 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001051/0.8516, allocations: 430.3 kB / 0.9629 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005548/0.8522, allocations: 285.8 kB / 0.9632 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006232/0.8528, allocations: 329.1 kB / 0.9635 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.72e-05/0.8529, allocations: 19.97 kB / 0.9635 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007164/0.8537, allocations: 195.3 kB / 0.9637 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0002391/0.8539, allocations: 156.3 kB / 0.9638 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002087/0.8541, allocations: 135.3 kB / 0.964 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0009747/0.8551, allocations: 0.6452 MB / 0.9646 GB, free: 100 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.8552, allocations: 4 kB / 0.9646 GB, free: 96 kB / 0.7169 GB Notification: Performance of FrontEnd: time 2.024e-06/0.8552, allocations: 1.344 kB / 0.9646 GB, free: 96 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.347e-05/0.8552, allocations: 0 / 0.9646 GB, free: 96 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.002076/0.8573, allocations: 0.8327 MB / 0.9654 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.8574, allocations: 8.938 kB / 0.9654 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002466/0.8598, allocations: 208.5 kB / 0.9656 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001322/0.8612, allocations: 476.5 kB / 0.9661 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.029e-05/0.8613, allocations: 34.58 kB / 0.9661 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.8614, allocations: 48.7 kB / 0.9662 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002058/0.8635, allocations: 0.8444 MB / 0.967 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.982e-05/0.8636, allocations: 7.031 kB / 0.967 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.958e-05/0.8637, allocations: 20.22 kB / 0.967 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001826/0.8639, allocations: 69.97 kB / 0.9671 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.8655, allocations: 0.5637 MB / 0.9676 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007937/0.8735, allocations: 5.644 MB / 0.9731 GB, free: 8.398 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.8746, allocations: 460.9 kB / 0.9736 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005416/0.8752, allocations: 223.8 kB / 0.9738 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.385e-05/0.8753, allocations: 2.875 kB / 0.9738 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.059e-05/0.8753, allocations: 39.88 kB / 0.9738 GB, free: 8 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=32): time 3.396e-06/0.8753, allocations: 1.469 kB / 0.9738 GB, free: 8 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33): time 0.004327/0.8797, allocations: 1.5 MB / 0.9753 GB, free: 6.902 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.8798, allocations: 59.88 kB / 0.9754 GB, free: 6.836 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008692/0.8807, allocations: 491.1 kB / 0.9758 GB, free: 6.535 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.437e-05/0.8807, allocations: 30.95 kB / 0.9759 GB, free: 6.5 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003423/0.8811, allocations: 355.3 kB / 0.9762 GB, free: 6.18 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.8812, allocations: 122.6 kB / 0.9763 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.969e-05/0.8813, allocations: 14.88 kB / 0.9763 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002114/0.8815, allocations: 362.3 kB / 0.9767 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004944/0.882, allocations: 196.3 kB / 0.9769 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007232/0.8827, allocations: 450.8 kB / 0.9773 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006643/0.8834, allocations: 262.7 kB / 0.9775 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.114e-05/0.8835, allocations: 3.438 kB / 0.9775 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002532/0.886, allocations: 0.8033 MB / 0.9783 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/0.8861, allocations: 8.094 kB / 0.9783 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.8861, allocations: 11.97 kB / 0.9783 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008875/0.887, allocations: 159.4 kB / 0.9785 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008375/0.8878, allocations: 122.3 kB / 0.9786 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005314/0.8932, allocations: 4.041 MB / 0.9826 GB, free: 352 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009365/0.8942, allocations: 33.22 kB / 0.9826 GB, free: 336 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001426/0.8943, allocations: 27.59 kB / 0.9826 GB, free: 332 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.0005831/0.8949, allocations: 205.9 kB / 0.9828 GB, free: 156 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002452/0.8952, allocations: 62.39 kB / 0.9829 GB, free: 124 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001848/0.8971, allocations: 0.6031 MB / 0.9835 GB, free: 15.74 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.8971, allocations: 3.969 kB / 0.9835 GB, free: 15.74 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.8971, allocations: 1.281 kB / 0.9835 GB, free: 15.74 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.8971, allocations: 3.984 kB / 0.9835 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003345/0.9005, allocations: 1.252 MB / 0.9847 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.9005, allocations: 2.812 kB / 0.9847 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004016/0.9009, allocations: 53.67 kB / 0.9848 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006142/0.9016, allocations: 145.3 kB / 0.9849 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.787e-05/0.9016, allocations: 6.812 kB / 0.9849 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0047/0.9063, allocations: 4.022 MB / 0.9888 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.9064, allocations: 0 / 0.9888 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.9079, allocations: 0.7122 MB / 0.9895 GB, free: 9.594 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004332/0.9084, allocations: 172.3 kB / 0.9897 GB, free: 9.406 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.9086, allocations: 8 kB / 0.9897 GB, free: 9.398 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004988/0.9091, allocations: 27.97 kB / 0.9897 GB, free: 9.371 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001201/0.9092, allocations: 23.97 kB / 0.9897 GB, free: 9.348 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.111e-05/0.9093, allocations: 11.98 kB / 0.9898 GB, free: 9.336 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0007255/0.91, allocations: 334.8 kB / 0.9901 GB, free: 9.012 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.81e-07/0.91, allocations: 0 / 0.9901 GB, free: 9.012 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.00139/0.9114, allocations: 144 kB / 0.9902 GB, free: 8.871 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.0002116/0.9117, allocations: 116.8 kB / 0.9903 GB, free: 8.75 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002236/0.9139, allocations: 1.032 MB / 0.9913 GB, free: 7.637 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.9139, allocations: 0.875 kB / 0.9913 GB, free: 7.637 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001263/0.9152, allocations: 0.7342 MB / 0.992 GB, free: 6.82 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001504/0.9167, allocations: 188 kB / 0.9922 GB, free: 6.641 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002731/0.9195, allocations: 1.22 MB / 0.9934 GB, free: 5.371 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000753/0.9202, allocations: 0.9058 MB / 0.9943 GB, free: 4.434 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0006146/0.9209, allocations: 117.3 kB / 0.9944 GB, free: 4.316 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/0.9211, allocations: 43.44 kB / 0.9945 GB, free: 4.277 MB / 0.7481 GB Notification: Performance of SimCode: time 3.346e-06/0.9211, allocations: 0 / 0.9945 GB, free: 4.277 MB / 0.7481 GB Notification: Performance of Templates: time 0.02126/0.9423, allocations: 7.023 MB / 1.001 GB, free: 13.34 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches