Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001058/0.001058, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001082/0.001082, allocations: 195.7 kB / 16.14 MB, free: 6.711 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.202/1.202, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.395/2.395, allocations: 461.8 MB / 0.7342 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 69.75 kB / 0.8985 GB, free: 36.94 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.229, allocations: 157.4 MB / 1.052 GB, free: 8.199 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006468/0.2355, allocations: 5.491 MB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003716/0.2393, allocations: 2.635 MB / 1.06 GB, free: 40 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000409/0.2397, allocations: 19.88 kB / 1.06 GB, free: 20 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001556/0.2413, allocations: 0.6258 MB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0008561/0.2421, allocations: 390.1 kB / 1.061 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008157/0.243, allocations: 359.3 kB / 1.061 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001151/0.2441, allocations: 1.244 MB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000667/0.2448, allocations: 462.2 kB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004735/0.2453, allocations: 330.6 kB / 1.063 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005171/0.2458, allocations: 410.4 kB / 1.064 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.026e-05/0.2459, allocations: 36 kB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006709/0.2466, allocations: 439.1 kB / 1.064 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002313/0.2468, allocations: 227.4 kB / 1.065 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003449/0.2472, allocations: 330.2 kB / 1.065 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009298/0.2481, allocations: 0.9733 MB / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2481, allocations: 0 / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.01e-07/0.2481, allocations: 4 kB / 1.066 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.974e-05/0.2482, allocations: 0 / 1.066 GB, free: 10.24 MB / 0.8262 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.001521/0.2497, allocations: 0.9621 MB / 1.067 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.2497, allocations: 15.97 kB / 1.067 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001102/0.2498, allocations: 106.6 kB / 1.067 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001348/0.2512, allocations: 191.9 kB / 1.067 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006124/0.2518, allocations: 486.4 kB / 1.067 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.2519, allocations: 37.36 kB / 1.068 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.252, allocations: 60.45 kB / 1.068 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.253, allocations: 0.8277 MB / 1.068 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.2531, allocations: 3.938 kB / 1.068 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.494e-05/0.2531, allocations: 27.98 kB / 1.068 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001805/0.2533, allocations: 68.94 kB / 1.068 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008166/0.2541, allocations: 0.5697 MB / 1.069 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003609/0.2578, allocations: 4.581 MB / 1.074 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004119/0.2582, allocations: 303.2 kB / 1.074 GB, free: 1.484 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002726/0.2585, allocations: 229.3 kB / 1.074 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.2585, allocations: 4.281 kB / 1.074 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.2585, allocations: 38.84 kB / 1.074 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=33): time 1.503e-06/0.2585, allocations: 0 / 1.074 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40): time 0.004985/0.2635, allocations: 2.615 MB / 1.077 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.782e-05/0.2636, allocations: 59.41 kB / 1.077 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003942/0.264, allocations: 461.9 kB / 1.077 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/0.264, allocations: 29.7 kB / 1.077 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000179/0.2642, allocations: 347.6 kB / 1.077 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.959e-05/0.2643, allocations: 141.9 kB / 1.078 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.2644, allocations: 110.1 kB / 1.078 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.2646, allocations: 362.7 kB / 1.078 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003244/0.2649, allocations: 249 kB / 1.078 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004032/0.2653, allocations: 410.4 kB / 1.079 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000748/0.2661, allocations: 0.674 MB / 1.079 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2661, allocations: 0 / 1.079 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001502/0.2676, allocations: 0.9291 MB / 1.08 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.2676, allocations: 8 kB / 1.08 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.2676, allocations: 4 kB / 1.08 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007418/0.2684, allocations: 226.4 kB / 1.08 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004652/0.2688, allocations: 115.8 kB / 1.081 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004123/0.273, allocations: 4.931 MB / 1.085 GB, free: 4.836 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003614/0.2733, allocations: 31.97 kB / 1.085 GB, free: 4.805 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-05/0.2734, allocations: 24.06 kB / 1.085 GB, free: 4.781 MB / 0.8419 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.0002224/0.2736, allocations: 225.6 kB / 1.086 GB, free: 4.551 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.34e-05/0.2737, allocations: 55.34 kB / 1.086 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/0.2751, allocations: 0.7809 MB / 1.087 GB, free: 3.699 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.2751, allocations: 4 kB / 1.087 GB, free: 3.695 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.2751, allocations: 4 kB / 1.087 GB, free: 3.691 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.2751, allocations: 3.984 kB / 1.087 GB, free: 3.688 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.2772, allocations: 1.494 MB / 1.088 GB, free: 2.105 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2772, allocations: 4 kB / 1.088 GB, free: 2.102 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003435/0.2775, allocations: 67.89 kB / 1.088 GB, free: 2.035 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006427/0.2782, allocations: 206.6 kB / 1.088 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.2782, allocations: 8 kB / 1.088 GB, free: 1.816 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00395/0.2822, allocations: 4.872 MB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.2822, allocations: 12 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001579/0.2838, allocations: 1.146 MB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000183/0.284, allocations: 164.4 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.569e-05/0.284, allocations: 8 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002986/0.2843, allocations: 32.03 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.981e-05/0.2844, allocations: 35.89 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.599e-05/0.2845, allocations: 12 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000292/0.2848, allocations: 310.9 kB / 1.095 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2848, allocations: 0 / 1.095 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005839/0.2854, allocations: 172 kB / 1.095 GB, free: 10.6 MB / 0.8575 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.001813/0.2872, allocations: 1.689 MB / 1.096 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001381/0.2886, allocations: 0.9964 MB / 1.097 GB, free: 7.816 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.2886, allocations: 3.938 kB / 1.097 GB, free: 7.812 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0008296/0.2894, allocations: 0.6799 MB / 1.098 GB, free: 7.094 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000786/0.2902, allocations: 171.8 kB / 1.098 GB, free: 6.926 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006807/0.297, allocations: 5.915 MB / 1.104 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000424/0.2975, allocations: 0.9455 MB / 1.105 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003253/0.2978, allocations: 109 kB / 1.105 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002286/0.298, allocations: 207.4 kB / 1.105 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.298, allocations: 0 / 1.105 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5628/0.8608, allocations: 13.49 MB / 1.118 GB, free: 2.227 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002119/0.8611, allocations: 238.7 kB / 1.119 GB, free: 1.969 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/2.688, allocations: 4 kB / 1.119 GB, free: 1.965 MB / 0.8731 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches