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.0013/0.0013, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001462/0.001462, allocations: 210.2 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.459/1.459, allocations: 230.6 MB / 256 MB, free: 7.785 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.17/3.17, allocations: 0.4892 GB / 0.7944 GB, free: 35.74 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.002873/0.002873, allocations: 69.89 kB / 1.153 GB, free: 25.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3445, allocations: 176.1 MB / 1.325 GB, free: 2.391 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005964/0.3504, allocations: 3.792 MB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003233/0.3537, allocations: 1.699 MB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002006/0.3539, allocations: 7.938 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001519/0.3554, allocations: 0.4942 MB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005513/0.356, allocations: 218.9 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005601/0.3565, allocations: 215.4 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005789/0.3571, allocations: 478.4 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005486/0.3576, allocations: 285.4 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000273/0.3579, allocations: 199.3 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000447/0.3584, allocations: 219.1 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.404e-05/0.3584, allocations: 31.94 kB / 1.332 GB, free: 10.76 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004445/0.3589, allocations: 215.5 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.359, allocations: 139.6 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.3592, allocations: 147.3 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006818/0.3599, allocations: 0.4981 MB / 1.333 GB, free: 9.766 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3599, allocations: 4 kB / 1.333 GB, free: 9.762 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3599, allocations: 0 / 1.333 GB, free: 9.762 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.3599, allocations: 3.938 kB / 1.333 GB, free: 9.758 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.001039/0.3609, allocations: 0.5557 MB / 1.334 GB, free: 9.172 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.361, allocations: 19.97 kB / 1.334 GB, free: 9.152 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.687e-05/0.361, allocations: 70.72 kB / 1.334 GB, free: 9.074 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008732/0.3619, allocations: 132.6 kB / 1.334 GB, free: 8.945 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004379/0.3624, allocations: 242.5 kB / 1.334 GB, free: 8.684 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.3624, allocations: 21.03 kB / 1.334 GB, free: 8.66 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.327e-05/0.3624, allocations: 32.36 kB / 1.334 GB, free: 8.629 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007485/0.3632, allocations: 0.5782 MB / 1.335 GB, free: 7.984 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.3632, allocations: 7.938 kB / 1.335 GB, free: 7.977 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/0.3632, allocations: 15.98 kB / 1.335 GB, free: 7.961 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-05/0.3633, allocations: 32.64 kB / 1.335 GB, free: 7.93 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005162/0.3638, allocations: 318.3 kB / 1.335 GB, free: 7.621 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.3658, allocations: 1.575 MB / 1.337 GB, free: 5.961 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003404/0.3662, allocations: 162.7 kB / 1.337 GB, free: 5.793 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000229/0.3664, allocations: 100.8 kB / 1.337 GB, free: 5.691 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 9.067e-06/0.3664, allocations: 0 / 1.337 GB, free: 5.691 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.3664, allocations: 34.66 kB / 1.337 GB, free: 5.648 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.3664, allocations: 3.938 kB / 1.337 GB, free: 5.645 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0005546/0.367, allocations: 226.5 kB / 1.337 GB, free: 5.414 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.367, allocations: 51.41 kB / 1.338 GB, free: 5.352 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.3673, allocations: 269.8 kB / 1.338 GB, free: 5.082 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.3673, allocations: 33.69 kB / 1.338 GB, free: 5.043 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.3675, allocations: 208.3 kB / 1.338 GB, free: 4.832 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.424e-05/0.3675, allocations: 59.53 kB / 1.338 GB, free: 4.773 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.585e-05/0.3676, allocations: 45.94 kB / 1.338 GB, free: 4.719 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3678, allocations: 338.8 kB / 1.338 GB, free: 4.379 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.892e-05/0.3679, allocations: 56.44 kB / 1.338 GB, free: 4.324 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.368, allocations: 144.7 kB / 1.339 GB, free: 4.145 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.3683, allocations: 217.1 kB / 1.339 GB, free: 3.895 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3683, allocations: 0 / 1.339 GB, free: 3.895 MB / 1.029 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004284/0.3687, allocations: 270.1 kB / 1.339 GB, free: 3.621 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.3688, allocations: 11.94 kB / 1.339 GB, free: 3.609 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.3688, allocations: 4 kB / 1.339 GB, free: 3.605 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001481/0.3689, allocations: 20.84 kB / 1.339 GB, free: 3.582 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.3691, allocations: 51.92 kB / 1.339 GB, free: 3.531 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001131/0.3702, allocations: 1.322 MB / 1.34 GB, free: 2.098 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/0.3704, allocations: 31.73 kB / 1.34 GB, free: 2.066 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.3704, allocations: 8 kB / 1.34 GB, free: 2.059 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.0001615/0.3706, allocations: 173 kB / 1.341 GB, free: 1.883 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.399e-05/0.3706, allocations: 23.86 kB / 1.341 GB, free: 1.859 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.852e-05/0.3707, allocations: 29.77 kB / 1.341 GB, free: 1.828 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.3707, allocations: 0 / 1.341 GB, free: 1.828 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.3707, allocations: 8.125 kB / 1.341 GB, free: 1.82 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3707, allocations: 0 / 1.341 GB, free: 1.82 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009266/0.3716, allocations: 0.6045 MB / 1.341 GB, free: 1.145 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3716, allocations: 64 / 1.341 GB, free: 1.145 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.784e-05/0.3717, allocations: 27.98 kB / 1.341 GB, free: 1.117 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.471e-05/0.3718, allocations: 32.72 kB / 1.341 GB, free: 1.082 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.3718, allocations: 4.188 kB / 1.341 GB, free: 1.078 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.3728, allocations: 1.303 MB / 1.343 GB, free: 15.66 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.3728, allocations: 4.031 kB / 1.343 GB, free: 15.66 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.3732, allocations: 323.6 kB / 1.343 GB, free: 15.31 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 9.248e-05/0.3733, allocations: 39.78 kB / 1.343 GB, free: 15.27 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.3733, allocations: 8.156 kB / 1.343 GB, free: 15.26 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.3735, allocations: 11.98 kB / 1.343 GB, free: 15.25 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.974e-05/0.3735, allocations: 19.92 kB / 1.343 GB, free: 15.23 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.3735, allocations: 4 kB / 1.343 GB, free: 15.23 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001874/0.3737, allocations: 189.2 kB / 1.343 GB, free: 15.04 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3737, allocations: 0 / 1.343 GB, free: 15.04 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003782/0.3741, allocations: 75.83 kB / 1.343 GB, free: 14.97 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.0006594/0.3747, allocations: 0.8663 MB / 1.344 GB, free: 14.05 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004508/0.3752, allocations: 258.4 kB / 1.344 GB, free: 13.79 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.3752, allocations: 0 / 1.344 GB, free: 13.79 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002313/0.3754, allocations: 187.4 kB / 1.345 GB, free: 13.59 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004423/0.3758, allocations: 64.08 kB / 1.345 GB, free: 13.54 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003096/0.3789, allocations: 2.724 MB / 1.347 GB, free: 10.62 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.3791, allocations: 182.1 kB / 1.347 GB, free: 10.42 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001386/0.3793, allocations: 42.27 kB / 1.347 GB, free: 10.38 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.3794, allocations: 83.59 kB / 1.348 GB, free: 10.3 MB / 1.045 GB Notification: Performance of SimCode: time 6.11e-07/0.3794, allocations: 0 / 1.348 GB, free: 10.3 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04568/0.4251, allocations: 6.135 MB / 1.354 GB, free: 4.355 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.24, allocations: 2.234 kB / 1.354 GB, free: 4.355 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.885940045118332]