Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 99.75 kB / 18.95 MB, free: 2.832 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 216.8 kB / 22.24 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.389/1.389, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.102/3.102, allocations: 0.49 GB / 0.7951 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 68.77 kB / 1.154 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3404, allocations: 176.1 MB / 1.326 GB, free: 1.484 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004793/0.3452, allocations: 3.064 MB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002172/0.3474, allocations: 1.321 MB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.984e-05/0.3475, allocations: 4 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.3485, allocations: 338.7 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003187/0.3488, allocations: 155.2 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003254/0.3491, allocations: 136.5 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003698/0.3495, allocations: 303 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003652/0.3499, allocations: 177.1 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.3501, allocations: 139.5 kB / 1.331 GB, free: 11.85 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003122/0.3504, allocations: 143.5 kB / 1.331 GB, free: 11.71 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.508e-05/0.3504, allocations: 24 kB / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002531/0.3507, allocations: 147.7 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.4e-05/0.3507, allocations: 79.8 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.3509, allocations: 95.59 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004204/0.3513, allocations: 338.7 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3513, allocations: 0 / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.133e-06/0.3513, allocations: 0 / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.3513, allocations: 0 / 1.332 GB, free: 11.04 MB / 1.029 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.0007841/0.3521, allocations: 465.5 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.3521, allocations: 8.031 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.234e-05/0.3522, allocations: 54.73 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000555/0.3527, allocations: 80.72 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000328/0.3531, allocations: 184.1 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.3531, allocations: 16.75 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.554e-05/0.3531, allocations: 20.38 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005076/0.3536, allocations: 372.4 kB / 1.333 GB, free: 9.754 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.3536, allocations: 0 / 1.333 GB, free: 9.754 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.3537, allocations: 8 kB / 1.333 GB, free: 9.746 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.262e-05/0.3537, allocations: 20.36 kB / 1.333 GB, free: 9.727 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003238/0.354, allocations: 196.9 kB / 1.333 GB, free: 9.535 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.3554, allocations: 1.047 MB / 1.334 GB, free: 8.418 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002257/0.3556, allocations: 86.56 kB / 1.335 GB, free: 8.324 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.015e-05/0.3557, allocations: 32.84 kB / 1.335 GB, free: 8.289 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-06/0.3557, allocations: 0 / 1.335 GB, free: 8.289 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.3557, allocations: 38.55 kB / 1.335 GB, free: 8.242 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 8.42e-07/0.3557, allocations: 0 / 1.335 GB, free: 8.242 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004459/0.3562, allocations: 150.5 kB / 1.335 GB, free: 8.086 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.3562, allocations: 51.41 kB / 1.335 GB, free: 8.023 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.3564, allocations: 206.3 kB / 1.335 GB, free: 7.812 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.3565, allocations: 25.7 kB / 1.335 GB, free: 7.781 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.3566, allocations: 167.9 kB / 1.335 GB, free: 7.613 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.104e-05/0.3566, allocations: 31.72 kB / 1.335 GB, free: 7.582 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.132e-05/0.3567, allocations: 33.72 kB / 1.335 GB, free: 7.543 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001596/0.3568, allocations: 326.8 kB / 1.336 GB, free: 7.215 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.077e-05/0.3569, allocations: 39.97 kB / 1.336 GB, free: 7.176 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.357, allocations: 98.39 kB / 1.336 GB, free: 7.051 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.3572, allocations: 148.4 kB / 1.336 GB, free: 6.875 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3572, allocations: 0 / 1.336 GB, free: 6.875 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003236/0.3575, allocations: 194.3 kB / 1.336 GB, free: 6.676 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.3576, allocations: 4 kB / 1.336 GB, free: 6.672 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3576, allocations: 4 kB / 1.336 GB, free: 6.668 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001469/0.3577, allocations: 20.84 kB / 1.336 GB, free: 6.645 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.3578, allocations: 35.92 kB / 1.336 GB, free: 6.609 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.359, allocations: 1.315 MB / 1.337 GB, free: 5.176 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.3591, allocations: 15.84 kB / 1.337 GB, free: 5.16 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.3592, allocations: 8 kB / 1.337 GB, free: 5.152 MB / 1.029 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.0001482/0.3593, allocations: 157.6 kB / 1.338 GB, free: 4.988 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.275e-05/0.3593, allocations: 19.94 kB / 1.338 GB, free: 4.969 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.033e-05/0.3594, allocations: 17.41 kB / 1.338 GB, free: 4.953 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.3594, allocations: 0 / 1.338 GB, free: 4.953 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3594, allocations: 3.984 kB / 1.338 GB, free: 4.949 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-06/0.3594, allocations: 0 / 1.338 GB, free: 4.949 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005555/0.3599, allocations: 406.4 kB / 1.338 GB, free: 4.5 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3599, allocations: 0 / 1.338 GB, free: 4.5 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.071e-05/0.36, allocations: 7.984 kB / 1.338 GB, free: 4.492 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.91e-05/0.3601, allocations: 24.84 kB / 1.338 GB, free: 4.465 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.3601, allocations: 4.031 kB / 1.338 GB, free: 4.461 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.3611, allocations: 1.316 MB / 1.339 GB, free: 3.031 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3611, allocations: 4.031 kB / 1.339 GB, free: 3.027 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/0.3614, allocations: 216.5 kB / 1.34 GB, free: 2.797 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.018e-05/0.3614, allocations: 11.91 kB / 1.34 GB, free: 2.785 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.3614, allocations: 8 kB / 1.34 GB, free: 2.777 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.3615, allocations: 11.98 kB / 1.34 GB, free: 2.766 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.876e-05/0.3616, allocations: 0 / 1.34 GB, free: 2.766 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.233e-06/0.3616, allocations: 4 kB / 1.34 GB, free: 2.762 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001395/0.3617, allocations: 147 kB / 1.34 GB, free: 2.617 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3617, allocations: 0 / 1.34 GB, free: 2.617 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003353/0.362, allocations: 55.98 kB / 1.34 GB, free: 2.562 MB / 1.029 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.0005604/0.3626, allocations: 0.7583 MB / 1.34 GB, free: 1.773 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003666/0.363, allocations: 202.5 kB / 1.341 GB, free: 1.562 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.363, allocations: 0 / 1.341 GB, free: 1.562 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001605/0.3631, allocations: 143.2 kB / 1.341 GB, free: 1.41 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003467/0.3635, allocations: 39.91 kB / 1.341 GB, free: 1.371 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.3658, allocations: 2.045 MB / 1.343 GB, free: 15.19 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001346/0.3659, allocations: 135.9 kB / 1.343 GB, free: 15.04 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 8.808e-05/0.366, allocations: 33.39 kB / 1.343 GB, free: 15 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.812e-05/0.3661, allocations: 55.42 kB / 1.343 GB, free: 14.95 MB / 1.045 GB Notification: Performance of SimCode: time 4.5e-07/0.3661, allocations: 192 / 1.343 GB, free: 14.95 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03336/0.3995, allocations: 4.44 MB / 1.347 GB, free: 10.68 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.15, allocations: 7.312 kB / 1.347 GB, free: 10.68 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.562590421002824]