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.005263/0.005263, allocations: 101.7 kB / 15.73 MB, free: 5.953 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.00131/0.00131, allocations: 189.5 kB / 16.67 MB, free: 5.883 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.288/1.288, allocations: 222.9 MB / 240.4 MB, free: 4.156 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.234/2.234, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 66.41 kB / 0.9504 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2085, allocations: 140.4 MB / 1.087 GB, free: 2.039 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006231/0.2148, allocations: 5.456 MB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003471/0.2183, allocations: 2.615 MB / 1.095 GB, free: 9.93 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002009/0.2185, allocations: 27.81 kB / 1.095 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001635/0.2201, allocations: 0.6798 MB / 1.096 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006431/0.2208, allocations: 401.8 kB / 1.096 GB, free: 8.828 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007044/0.2215, allocations: 399.1 kB / 1.097 GB, free: 8.438 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007864/0.2223, allocations: 0.9513 MB / 1.098 GB, free: 7.48 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000546/0.2229, allocations: 477.3 kB / 1.098 GB, free: 7.016 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003481/0.2232, allocations: 358.7 kB / 1.099 GB, free: 6.664 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004263/0.2237, allocations: 406.4 kB / 1.099 GB, free: 6.266 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.64e-05/0.2237, allocations: 48 kB / 1.099 GB, free: 6.219 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004686/0.2242, allocations: 367.2 kB / 1.099 GB, free: 5.859 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002084/0.2244, allocations: 239.4 kB / 1.1 GB, free: 5.625 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000295/0.2247, allocations: 346.2 kB / 1.1 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008378/0.2256, allocations: 0.9703 MB / 1.101 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2256, allocations: 4 kB / 1.101 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2256, allocations: 0 / 1.101 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.796e-06/0.2256, allocations: 0 / 1.101 GB, free: 4.309 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.001362/0.227, allocations: 0.9737 MB / 1.102 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.227, allocations: 16.03 kB / 1.102 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001113/0.2271, allocations: 94.69 kB / 1.102 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.2285, allocations: 203.8 kB / 1.102 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007382/0.2292, allocations: 0.5102 MB / 1.103 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.717e-05/0.2293, allocations: 37.36 kB / 1.103 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001429/0.2294, allocations: 56.47 kB / 1.103 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.2304, allocations: 0.8355 MB / 1.103 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.2305, allocations: 3.938 kB / 1.103 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.743e-05/0.2305, allocations: 27.98 kB / 1.104 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001858/0.2307, allocations: 68.94 kB / 1.104 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008292/0.2315, allocations: 0.5696 MB / 1.104 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003805/0.2354, allocations: 4.565 MB / 1.109 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000434/0.2358, allocations: 299.2 kB / 1.109 GB, free: 11.52 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002877/0.2361, allocations: 225.3 kB / 1.109 GB, free: 11.3 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.455e-05/0.2361, allocations: 4.281 kB / 1.109 GB, free: 11.3 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.2362, allocations: 34.84 kB / 1.109 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=33): time 5.33e-06/0.2362, allocations: 4 kB / 1.109 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of matching and sorting (n=40): time 0.005232/0.2414, allocations: 2.638 MB / 1.112 GB, free: 8.484 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.2415, allocations: 55.41 kB / 1.112 GB, free: 8.418 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004165/0.2419, allocations: 465.8 kB / 1.112 GB, free: 7.949 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.2419, allocations: 33.7 kB / 1.112 GB, free: 7.91 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.2421, allocations: 343.6 kB / 1.113 GB, free: 7.566 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 9.556e-05/0.2422, allocations: 142 kB / 1.113 GB, free: 7.426 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.2424, allocations: 110.1 kB / 1.113 GB, free: 7.312 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.2425, allocations: 362.8 kB / 1.113 GB, free: 6.949 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.2428, allocations: 237 kB / 1.113 GB, free: 6.719 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004291/0.2433, allocations: 402.5 kB / 1.114 GB, free: 6.246 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007979/0.2441, allocations: 0.674 MB / 1.114 GB, free: 5.5 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2441, allocations: 0 / 1.114 GB, free: 5.5 MB / 0.8731 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001566/0.2457, allocations: 0.9247 MB / 1.115 GB, free: 4.559 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.2457, allocations: 8 kB / 1.115 GB, free: 4.551 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.2457, allocations: 11.94 kB / 1.115 GB, free: 4.539 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007517/0.2465, allocations: 223 kB / 1.116 GB, free: 4.312 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004948/0.247, allocations: 111.8 kB / 1.116 GB, free: 4.203 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004674/0.2516, allocations: 5.34 MB / 1.121 GB, free: 14.44 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.2521, allocations: 31.97 kB / 1.121 GB, free: 14.41 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.2521, allocations: 20 kB / 1.121 GB, free: 14.39 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.0002458/0.2524, allocations: 235.3 kB / 1.121 GB, free: 14.15 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.109e-05/0.2525, allocations: 59.28 kB / 1.121 GB, free: 14.09 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001501/0.254, allocations: 0.7733 MB / 1.122 GB, free: 13.3 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.254, allocations: 4 kB / 1.122 GB, free: 13.3 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.254, allocations: 4.188 kB / 1.122 GB, free: 13.3 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.254, allocations: 7.984 kB / 1.122 GB, free: 13.29 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/0.2563, allocations: 1.49 MB / 1.123 GB, free: 11.71 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.2563, allocations: 7.984 kB / 1.123 GB, free: 11.7 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003655/0.2567, allocations: 67.89 kB / 1.124 GB, free: 11.64 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006424/0.2574, allocations: 206.5 kB / 1.124 GB, free: 11.43 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.2574, allocations: 8 kB / 1.124 GB, free: 11.42 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004473/0.2619, allocations: 5.27 MB / 1.129 GB, free: 5.73 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2619, allocations: 3.938 kB / 1.129 GB, free: 5.727 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.2635, allocations: 1.135 MB / 1.13 GB, free: 4.543 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.2638, allocations: 172.3 kB / 1.13 GB, free: 4.355 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.692e-05/0.2639, allocations: 12 kB / 1.13 GB, free: 4.344 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003327/0.2642, allocations: 31.84 kB / 1.13 GB, free: 4.312 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.774e-05/0.2643, allocations: 31.95 kB / 1.13 GB, free: 4.281 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.904e-05/0.2643, allocations: 16 kB / 1.13 GB, free: 4.266 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0002906/0.2646, allocations: 314.9 kB / 1.131 GB, free: 3.961 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2646, allocations: 0 / 1.131 GB, free: 3.961 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.000565/0.2652, allocations: 164 kB / 1.131 GB, free: 3.801 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.001911/0.2671, allocations: 1.7 MB / 1.132 GB, free: 2.039 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001444/0.2686, allocations: 1.01 MB / 1.133 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2686, allocations: 0 / 1.133 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0008974/0.2695, allocations: 0.676 MB / 1.134 GB, free: 284 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008399/0.2703, allocations: 183.4 kB / 1.134 GB, free: 112 kB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006752/0.2771, allocations: 5.61 MB / 1.14 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004378/0.2776, allocations: 0.9416 MB / 1.141 GB, free: 9.238 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.000284/0.2778, allocations: 113 kB / 1.141 GB, free: 9.129 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000239/0.2781, allocations: 207.4 kB / 1.141 GB, free: 8.93 MB / 0.9044 GB Notification: Performance of SimCode: time 3.11e-07/0.2781, allocations: 0 / 1.141 GB, free: 8.93 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.3129, allocations: 14.1 MB / 1.155 GB, free: 11.08 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.56, allocations: 2.531 kB / 1.155 GB, free: 11.08 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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