Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004853/0.004853, allocations: 101 kB / 15.73 MB, free: 6.047 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.00125/0.00125, allocations: 186.5 kB / 16.67 MB, free: 5.977 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 4.188 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.302/2.302, allocations: 390.2 MB / 0.6648 GB, free: 160 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 57.81 kB / 0.9504 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2136/0.2148, allocations: 140.4 MB / 1.087 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006634/0.2215, allocations: 5.456 MB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003962/0.2255, allocations: 2.615 MB / 1.095 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003253/0.2258, allocations: 23.88 kB / 1.095 GB, free: 9.848 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001756/0.2276, allocations: 0.6885 MB / 1.096 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0008487/0.2284, allocations: 405.7 kB / 1.096 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008662/0.2293, allocations: 396.9 kB / 1.097 GB, free: 8.371 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009461/0.2303, allocations: 0.9553 MB / 1.098 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005957/0.2309, allocations: 461.3 kB / 1.098 GB, free: 6.961 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004631/0.2313, allocations: 370.5 kB / 1.099 GB, free: 6.598 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004884/0.2318, allocations: 406.4 kB / 1.099 GB, free: 6.199 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.295e-05/0.2319, allocations: 48 kB / 1.099 GB, free: 6.152 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005673/0.2325, allocations: 367.3 kB / 1.099 GB, free: 5.793 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002284/0.2327, allocations: 247.3 kB / 1.1 GB, free: 5.551 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003369/0.2331, allocations: 350.2 kB / 1.1 GB, free: 5.207 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0009461/0.234, allocations: 0.9664 MB / 1.101 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2341, allocations: 0 / 1.101 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2341, allocations: 0 / 1.101 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.651e-05/0.2341, allocations: 4 kB / 1.101 GB, free: 4.234 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001522/0.2356, allocations: 0.9737 MB / 1.102 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.2357, allocations: 8.031 kB / 1.102 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001143/0.2358, allocations: 98.69 kB / 1.102 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001399/0.2372, allocations: 199.8 kB / 1.102 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007728/0.238, allocations: 0.5064 MB / 1.103 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.238, allocations: 41.3 kB / 1.103 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001678/0.2382, allocations: 64.44 kB / 1.103 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.2393, allocations: 0.8277 MB / 1.103 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.55e-05/0.2393, allocations: 7.938 kB / 1.103 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.24e-05/0.2394, allocations: 27.98 kB / 1.104 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001962/0.2396, allocations: 64.95 kB / 1.104 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000901/0.2405, allocations: 0.5736 MB / 1.104 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004069/0.2446, allocations: 4.569 MB / 1.109 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004542/0.2451, allocations: 295.2 kB / 1.109 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002991/0.2454, allocations: 233.3 kB / 1.109 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.2454, allocations: 288 / 1.109 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.2454, allocations: 42.83 kB / 1.109 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=33): time 1.443e-06/0.2454, allocations: 0 / 1.109 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of matching and sorting (n=40): time 0.005526/0.251, allocations: 2.63 MB / 1.112 GB, free: 8.414 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.251, allocations: 59.41 kB / 1.112 GB, free: 8.344 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004675/0.2515, allocations: 457.8 kB / 1.112 GB, free: 7.883 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.07e-05/0.2515, allocations: 37.69 kB / 1.112 GB, free: 7.84 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002058/0.2518, allocations: 343.6 kB / 1.113 GB, free: 7.496 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.2519, allocations: 145.9 kB / 1.113 GB, free: 7.352 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.252, allocations: 102.2 kB / 1.113 GB, free: 7.246 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.2522, allocations: 358.8 kB / 1.113 GB, free: 6.887 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003556/0.2525, allocations: 237 kB / 1.113 GB, free: 6.656 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004396/0.253, allocations: 410.4 kB / 1.114 GB, free: 6.176 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008264/0.2538, allocations: 0.674 MB / 1.114 GB, free: 5.43 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.2538, allocations: 8 kB / 1.114 GB, free: 5.422 MB / 0.8731 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001638/0.2555, allocations: 0.9129 MB / 1.115 GB, free: 4.492 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.2555, allocations: 12.64 kB / 1.115 GB, free: 4.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.2555, allocations: 8 kB / 1.115 GB, free: 4.473 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007845/0.2563, allocations: 222.3 kB / 1.116 GB, free: 4.246 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005135/0.2568, allocations: 119.9 kB / 1.116 GB, free: 4.129 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005033/0.2619, allocations: 5.332 MB / 1.121 GB, free: 14.38 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004101/0.2623, allocations: 39.95 kB / 1.121 GB, free: 14.34 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.884e-05/0.2624, allocations: 20 kB / 1.121 GB, free: 14.32 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002465/0.2626, allocations: 221.6 kB / 1.121 GB, free: 14.09 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.597e-05/0.2627, allocations: 63.27 kB / 1.121 GB, free: 14.03 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/0.2642, allocations: 0.7695 MB / 1.122 GB, free: 13.24 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.2642, allocations: 4 kB / 1.122 GB, free: 13.24 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.2643, allocations: 7.984 kB / 1.122 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.2643, allocations: 4.188 kB / 1.122 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002369/0.2666, allocations: 1.498 MB / 1.123 GB, free: 11.64 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.2667, allocations: 4 kB / 1.123 GB, free: 11.64 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003844/0.2671, allocations: 67.88 kB / 1.124 GB, free: 11.57 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006777/0.2678, allocations: 202.6 kB / 1.124 GB, free: 11.36 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.329e-05/0.2678, allocations: 12 kB / 1.124 GB, free: 11.35 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004591/0.2724, allocations: 5.269 MB / 1.129 GB, free: 5.664 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.2724, allocations: 4 kB / 1.129 GB, free: 5.66 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.2741, allocations: 1.135 MB / 1.13 GB, free: 4.477 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000228/0.2744, allocations: 172.3 kB / 1.13 GB, free: 4.289 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.819e-05/0.2744, allocations: 8 kB / 1.13 GB, free: 4.281 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003306/0.2748, allocations: 23.97 kB / 1.13 GB, free: 4.258 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.878e-05/0.2749, allocations: 47.89 kB / 1.13 GB, free: 4.211 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/0.2749, allocations: 12 kB / 1.13 GB, free: 4.199 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0003247/0.2752, allocations: 314.9 kB / 1.131 GB, free: 3.895 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2752, allocations: 0 / 1.131 GB, free: 3.895 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0005997/0.2758, allocations: 164 kB / 1.131 GB, free: 3.734 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002162/0.278, allocations: 1.698 MB / 1.132 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001695/0.2797, allocations: 1.006 MB / 1.133 GB, free: 0.9336 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.2797, allocations: 0 / 1.133 GB, free: 0.9336 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0009445/0.2807, allocations: 0.6799 MB / 1.134 GB, free: 220 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008785/0.2816, allocations: 195.2 kB / 1.134 GB, free: 36 kB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007434/0.289, allocations: 5.597 MB / 1.14 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.2895, allocations: 0.9494 MB / 1.141 GB, free: 9.168 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0003214/0.2899, allocations: 105 kB / 1.141 GB, free: 9.066 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/0.2901, allocations: 215.4 kB / 1.141 GB, free: 8.859 MB / 0.9044 GB Notification: Performance of SimCode: time 3.5e-07/0.2901, allocations: 0 / 1.141 GB, free: 8.859 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03768/0.3278, allocations: 14.1 MB / 1.155 GB, free: 11 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.56, allocations: 8.062 kB / 1.155 GB, free: 11 MB / 0.92 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches