Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_11_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_11_Buildings_Electrical_DC_Lines_Examples_Resistance",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.001244/0.001244, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 197 kB / 16.53 MB, free: 6.699 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.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.557/2.557, allocations: 469.8 MB / 0.7424 GB, free: 7.391 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 64.2 kB / 0.9087 GB, free: 34.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2544, allocations: 159.1 MB / 1.064 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004376/0.2588, allocations: 3.082 MB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001921/0.2608, allocations: 1.321 MB / 1.068 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9e-05/0.2609, allocations: 4 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0009026/0.2618, allocations: 336 kB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000273/0.2621, allocations: 147.3 kB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.2624, allocations: 139.6 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.2627, allocations: 299 kB / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003794/0.2631, allocations: 248.4 kB / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.2632, allocations: 119.5 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.2635, allocations: 143.5 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.434e-05/0.2635, allocations: 19.98 kB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002571/0.2638, allocations: 163.7 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.707e-05/0.2639, allocations: 79.8 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.264, allocations: 111.5 kB / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003746/0.2644, allocations: 331 kB / 1.07 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2644, allocations: 0 / 1.07 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2644, allocations: 0 / 1.07 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.2644, allocations: 0 / 1.07 GB, free: 7.645 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007256/0.2651, allocations: 0.5147 MB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.2652, allocations: 16.02 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.122e-05/0.2652, allocations: 54.73 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005125/0.2657, allocations: 72.58 kB / 1.071 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002765/0.266, allocations: 246.2 kB / 1.071 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.2661, allocations: 8.75 kB / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.984e-05/0.2661, allocations: 28.31 kB / 1.071 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004244/0.2665, allocations: 295.4 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.2665, allocations: 0 / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.2666, allocations: 8 kB / 1.072 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-05/0.2666, allocations: 24.3 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002918/0.2669, allocations: 193 kB / 1.072 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.2683, allocations: 1.46 MB / 1.073 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002373/0.2686, allocations: 179.7 kB / 1.073 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.499e-05/0.2686, allocations: 32.84 kB / 1.073 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.392e-06/0.2686, allocations: 4 kB / 1.073 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.2687, allocations: 34.5 kB / 1.073 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 2.685e-06/0.2687, allocations: 3.938 kB / 1.073 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004292/0.2691, allocations: 231.5 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.2692, allocations: 51.41 kB / 1.074 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/0.2694, allocations: 203.1 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.2694, allocations: 29.7 kB / 1.074 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.2695, allocations: 171.5 kB / 1.074 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/0.2695, allocations: 15.66 kB / 1.074 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.268e-05/0.2696, allocations: 37.7 kB / 1.074 GB, free: 3.387 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.2697, allocations: 326.8 kB / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.08e-05/0.2698, allocations: 39.98 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.2699, allocations: 102.2 kB / 1.075 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.2701, allocations: 148.4 kB / 1.075 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2701, allocations: 4 kB / 1.075 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003/0.2704, allocations: 186.1 kB / 1.075 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.2704, allocations: 8 kB / 1.075 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.2704, allocations: 0 / 1.075 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001301/0.2705, allocations: 29.12 kB / 1.075 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.2707, allocations: 31.92 kB / 1.075 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.2717, allocations: 1.418 MB / 1.076 GB, free: 0.8867 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.2719, allocations: 23.83 kB / 1.076 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.2719, allocations: 4 kB / 1.076 GB, free: 0.8594 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001256/0.272, allocations: 149.6 kB / 1.077 GB, free: 0.7031 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.78e-05/0.272, allocations: 23.91 kB / 1.077 GB, free: 0.6797 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.848e-05/0.2721, allocations: 17.39 kB / 1.077 GB, free: 0.6641 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.2721, allocations: 96 / 1.077 GB, free: 0.6641 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.2721, allocations: 3.938 kB / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.2721, allocations: 0 / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004767/0.2726, allocations: 447.2 kB / 1.077 GB, free: 168 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2726, allocations: 0 / 1.077 GB, free: 168 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.952e-05/0.2726, allocations: 8 kB / 1.077 GB, free: 160 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.885e-05/0.2727, allocations: 24.84 kB / 1.077 GB, free: 132 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.2727, allocations: 0 / 1.077 GB, free: 132 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001003/0.2737, allocations: 1.426 MB / 1.078 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2737, allocations: 0 / 1.078 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002155/0.274, allocations: 216.1 kB / 1.079 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.587e-05/0.2741, allocations: 105 kB / 1.079 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.2741, allocations: 3.938 kB / 1.079 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.2742, allocations: 4 kB / 1.079 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.76e-05/0.2742, allocations: 7.984 kB / 1.079 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.2742, allocations: 4 kB / 1.079 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001232/0.2744, allocations: 144.3 kB / 1.079 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2744, allocations: 0 / 1.079 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002868/0.2747, allocations: 55.84 kB / 1.079 GB, free: 14 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004844/0.2751, allocations: 0.7414 MB / 1.08 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00034/0.2755, allocations: 219 kB / 1.08 GB, free: 13 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2755, allocations: 0 / 1.08 GB, free: 13 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.2757, allocations: 146.7 kB / 1.08 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.276, allocations: 42.25 kB / 1.08 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.278, allocations: 2.043 MB / 1.082 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.2784, allocations: 0.7514 MB / 1.083 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.401e-05/0.2785, allocations: 25.53 kB / 1.083 GB, free: 9.816 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.235e-05/0.2786, allocations: 55.41 kB / 1.083 GB, free: 9.762 MB / 0.8419 GB Notification: Performance of SimCode: time 3.01e-07/0.2786, allocations: 0 / 1.083 GB, free: 9.762 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.626/1.905, allocations: 3.622 MB / 1.086 GB, free: 6.25 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/16.45, allocations: 9.781 kB / 1.086 GB, free: 6.242 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_11_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches