Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.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.001553/0.001553, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001582/0.001582, allocations: 215.4 kB / 22.24 MB, free: 5.262 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.442/1.442, allocations: 230.6 MB / 256 MB, free: 7.781 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.34/3.34, allocations: 0.49 GB / 0.7951 GB, free: 35.43 MB / 0.6231 GB " [Timeout remaining time 176] 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.Loads.Examples.Resistor,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor",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.001985/0.001985, allocations: 66.3 kB / 1.154 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3663, allocations: 176.1 MB / 1.326 GB, free: 1.48 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006172/0.3725, allocations: 3.795 MB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003413/0.3759, allocations: 1.706 MB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003094/0.3762, allocations: 11.94 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.3778, allocations: 491.2 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0006911/0.3785, allocations: 234.8 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000642/0.3791, allocations: 204.7 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006924/0.3798, allocations: 478.4 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005642/0.3804, allocations: 293.4 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002655/0.3807, allocations: 195.4 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004991/0.3812, allocations: 239.1 kB / 1.333 GB, free: 9.852 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.222e-05/0.3812, allocations: 28 kB / 1.333 GB, free: 9.824 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004407/0.3817, allocations: 219.5 kB / 1.333 GB, free: 9.609 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.3818, allocations: 135.6 kB / 1.334 GB, free: 9.477 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.382, allocations: 139.4 kB / 1.334 GB, free: 9.34 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000687/0.3827, allocations: 0.5059 MB / 1.334 GB, free: 8.832 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3827, allocations: 7.938 kB / 1.334 GB, free: 8.824 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3827, allocations: 0 / 1.334 GB, free: 8.824 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.3827, allocations: 0 / 1.334 GB, free: 8.824 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001129/0.3838, allocations: 0.5674 MB / 1.335 GB, free: 8.227 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.3839, allocations: 12.03 kB / 1.335 GB, free: 8.215 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.799e-05/0.384, allocations: 70.7 kB / 1.335 GB, free: 8.137 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008743/0.3848, allocations: 132.6 kB / 1.335 GB, free: 8.008 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004519/0.3853, allocations: 242.5 kB / 1.335 GB, free: 7.746 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.551e-05/0.3853, allocations: 21.03 kB / 1.335 GB, free: 7.723 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.925e-05/0.3854, allocations: 28.38 kB / 1.335 GB, free: 7.695 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008/0.3862, allocations: 0.5782 MB / 1.336 GB, free: 7.051 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.3862, allocations: 7.938 kB / 1.336 GB, free: 7.043 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.634e-05/0.3862, allocations: 16 kB / 1.336 GB, free: 7.027 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.262e-05/0.3863, allocations: 32.62 kB / 1.336 GB, free: 6.996 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005082/0.3868, allocations: 318.3 kB / 1.336 GB, free: 6.688 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002166/0.389, allocations: 1.579 MB / 1.338 GB, free: 5.023 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003562/0.3893, allocations: 158.7 kB / 1.338 GB, free: 4.859 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002281/0.3896, allocations: 96.8 kB / 1.338 GB, free: 4.762 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.3896, allocations: 0 / 1.338 GB, free: 4.762 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.3896, allocations: 42.5 kB / 1.338 GB, free: 4.711 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.3896, allocations: 0 / 1.338 GB, free: 4.711 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0006058/0.3902, allocations: 234.4 kB / 1.338 GB, free: 4.477 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.3903, allocations: 51.41 kB / 1.338 GB, free: 4.414 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003151/0.3906, allocations: 269.8 kB / 1.339 GB, free: 4.145 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.3906, allocations: 33.7 kB / 1.339 GB, free: 4.105 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.3908, allocations: 208.3 kB / 1.339 GB, free: 3.895 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.531e-05/0.3908, allocations: 55.52 kB / 1.339 GB, free: 3.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.172e-05/0.3909, allocations: 45.94 kB / 1.339 GB, free: 3.785 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001903/0.3911, allocations: 342.8 kB / 1.339 GB, free: 3.441 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.713e-05/0.3912, allocations: 52.44 kB / 1.339 GB, free: 3.391 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.3914, allocations: 152.7 kB / 1.339 GB, free: 3.203 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/0.3917, allocations: 214.9 kB / 1.34 GB, free: 2.953 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3917, allocations: 0 / 1.34 GB, free: 2.953 MB / 1.029 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005248/0.3923, allocations: 259.7 kB / 1.34 GB, free: 2.691 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.3923, allocations: 8 kB / 1.34 GB, free: 2.684 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-06/0.3923, allocations: 4.375 kB / 1.34 GB, free: 2.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001726/0.3925, allocations: 28.84 kB / 1.34 GB, free: 2.648 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.3927, allocations: 52 kB / 1.34 GB, free: 2.598 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.394, allocations: 1.318 MB / 1.341 GB, free: 1.168 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001862/0.3942, allocations: 31.73 kB / 1.341 GB, free: 1.137 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.608e-05/0.3942, allocations: 12.16 kB / 1.341 GB, free: 1.125 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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.0001896/0.3944, allocations: 169.7 kB / 1.341 GB, free: 0.9492 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.587e-05/0.3944, allocations: 23.86 kB / 1.341 GB, free: 0.9258 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.128e-05/0.3945, allocations: 29.77 kB / 1.342 GB, free: 0.8945 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.3945, allocations: 3.938 kB / 1.342 GB, free: 0.8906 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.3945, allocations: 0 / 1.342 GB, free: 0.8906 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3945, allocations: 7.984 kB / 1.342 GB, free: 0.8828 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009695/0.3955, allocations: 0.6007 MB / 1.342 GB, free: 216 kB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3955, allocations: 0 / 1.342 GB, free: 216 kB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.402e-05/0.3956, allocations: 27.92 kB / 1.342 GB, free: 188 kB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.497e-05/0.3957, allocations: 28.78 kB / 1.342 GB, free: 156 kB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.3957, allocations: 0 / 1.342 GB, free: 156 kB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001141/0.3968, allocations: 1.303 MB / 1.343 GB, free: 14.74 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/0.3968, allocations: 4.031 kB / 1.343 GB, free: 14.73 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004972/0.3973, allocations: 325.1 kB / 1.344 GB, free: 14.38 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.3974, allocations: 31.84 kB / 1.344 GB, free: 14.35 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/0.3974, allocations: 8 kB / 1.344 GB, free: 14.34 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.3977, allocations: 8 kB / 1.344 GB, free: 14.33 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.604e-05/0.3977, allocations: 23.89 kB / 1.344 GB, free: 14.31 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.3977, allocations: 12.09 kB / 1.344 GB, free: 14.3 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002132/0.398, allocations: 193.1 kB / 1.344 GB, free: 14.11 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.398, allocations: 0 / 1.344 GB, free: 14.11 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000436/0.3984, allocations: 79.83 kB / 1.344 GB, free: 14.03 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0007911/0.3992, allocations: 0.8491 MB / 1.345 GB, free: 13.13 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005336/0.3997, allocations: 270.7 kB / 1.345 GB, free: 12.86 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3997, allocations: 0 / 1.345 GB, free: 12.86 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002381/0.4, allocations: 182.6 kB / 1.345 GB, free: 12.66 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004839/0.4004, allocations: 58.41 kB / 1.345 GB, free: 12.61 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003503/0.4039, allocations: 2.724 MB / 1.348 GB, free: 9.691 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000209/0.4042, allocations: 186.1 kB / 1.348 GB, free: 9.492 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001693/0.4043, allocations: 42.27 kB / 1.348 GB, free: 9.453 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.4044, allocations: 83.41 kB / 1.348 GB, free: 9.371 MB / 1.045 GB Notification: Performance of SimCode: time 8.22e-07/0.4044, allocations: 0 / 1.348 GB, free: 9.371 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0375/0.4419, allocations: 6.232 MB / 1.354 GB, free: 3.336 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.97, allocations: 3.984 kB / 1.354 GB, free: 3.332 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.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.81299132699496]