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.001616/0.001616, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001906/0.001906, allocations: 221.4 kB / 23.03 MB, free: 4.945 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.464/1.464, allocations: 230.6 MB / 256.8 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.225/3.225, allocations: 0.49 GB / 0.7959 GB, free: 35.45 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="cs",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.001948/0.001948, allocations: 64.98 kB / 1.155 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3685, allocations: 176.1 MB / 1.327 GB, free: 1.684 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005948/0.3744, allocations: 3.792 MB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00295/0.3774, allocations: 1.695 MB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.3775, allocations: 11.94 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.379, allocations: 0.4922 MB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005471/0.3795, allocations: 218.9 kB / 1.333 GB, free: 11.46 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000513/0.38, allocations: 219.5 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000553/0.3806, allocations: 474.4 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005149/0.3811, allocations: 289.6 kB / 1.334 GB, free: 10.49 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000239/0.3813, allocations: 199.4 kB / 1.334 GB, free: 10.29 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004247/0.3818, allocations: 231.1 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.302e-05/0.3818, allocations: 28 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004009/0.3822, allocations: 219.5 kB / 1.334 GB, free: 9.824 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.3824, allocations: 135.6 kB / 1.334 GB, free: 9.691 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.3826, allocations: 143.4 kB / 1.334 GB, free: 9.551 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0007246/0.3833, allocations: 0.5098 MB / 1.335 GB, free: 9.039 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3833, allocations: 0 / 1.335 GB, free: 9.039 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.694e-06/0.3833, allocations: 0 / 1.335 GB, free: 9.039 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.784e-06/0.3833, allocations: 0 / 1.335 GB, free: 9.039 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.001156/0.3844, allocations: 0.5674 MB / 1.336 GB, free: 8.441 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.3845, allocations: 8.031 kB / 1.336 GB, free: 8.434 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.467e-05/0.3845, allocations: 8.844 kB / 1.336 GB, free: 8.422 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.603e-05/0.3846, allocations: 66.72 kB / 1.336 GB, free: 8.348 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009192/0.3855, allocations: 136.6 kB / 1.336 GB, free: 8.215 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004212/0.3859, allocations: 238.5 kB / 1.336 GB, free: 7.957 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.334e-05/0.386, allocations: 21.03 kB / 1.336 GB, free: 7.938 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.405e-05/0.386, allocations: 36.36 kB / 1.336 GB, free: 7.902 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008311/0.3868, allocations: 0.5858 MB / 1.337 GB, free: 7.25 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.3869, allocations: 0 / 1.337 GB, free: 7.25 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.783e-05/0.3869, allocations: 15.98 kB / 1.337 GB, free: 7.234 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.897e-05/0.387, allocations: 28.64 kB / 1.337 GB, free: 7.207 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005167/0.3875, allocations: 322.3 kB / 1.337 GB, free: 6.891 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.3896, allocations: 1.579 MB / 1.338 GB, free: 5.23 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003943/0.39, allocations: 166.5 kB / 1.339 GB, free: 5.062 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002462/0.3902, allocations: 92.8 kB / 1.339 GB, free: 4.969 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.3903, allocations: 7.984 kB / 1.339 GB, free: 4.961 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.3903, allocations: 38.56 kB / 1.339 GB, free: 4.914 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 2.134e-06/0.3903, allocations: 0 / 1.339 GB, free: 4.914 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0006638/0.391, allocations: 222.5 kB / 1.339 GB, free: 4.688 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.391, allocations: 55.5 kB / 1.339 GB, free: 4.621 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003255/0.3913, allocations: 269.8 kB / 1.339 GB, free: 4.352 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.3914, allocations: 29.7 kB / 1.339 GB, free: 4.316 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.3915, allocations: 208.2 kB / 1.34 GB, free: 4.105 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.098e-05/0.3916, allocations: 51.59 kB / 1.34 GB, free: 4.055 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.922e-05/0.3917, allocations: 53.83 kB / 1.34 GB, free: 3.992 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.3918, allocations: 342.8 kB / 1.34 GB, free: 3.648 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.3919, allocations: 52.44 kB / 1.34 GB, free: 3.598 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.3921, allocations: 148.7 kB / 1.34 GB, free: 3.414 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002939/0.3924, allocations: 217.3 kB / 1.34 GB, free: 3.164 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3924, allocations: 0 / 1.34 GB, free: 3.164 MB / 1.029 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004375/0.3928, allocations: 266.4 kB / 1.341 GB, free: 2.895 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3928, allocations: 9.719 kB / 1.341 GB, free: 2.887 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.3928, allocations: 4 kB / 1.341 GB, free: 2.883 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001633/0.393, allocations: 24.84 kB / 1.341 GB, free: 2.855 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.3932, allocations: 51.92 kB / 1.341 GB, free: 2.805 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001178/0.3944, allocations: 1.318 MB / 1.342 GB, free: 1.375 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.3945, allocations: 31.72 kB / 1.342 GB, free: 1.344 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.3946, allocations: 12 kB / 1.342 GB, free: 1.332 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.0001804/0.3947, allocations: 173.6 kB / 1.342 GB, free: 1.152 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.615e-05/0.3948, allocations: 19.86 kB / 1.342 GB, free: 1.133 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.147e-05/0.3949, allocations: 25.78 kB / 1.342 GB, free: 1.105 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.3949, allocations: 7.984 kB / 1.342 GB, free: 1.098 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3949, allocations: 0 / 1.342 GB, free: 1.098 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-06/0.3949, allocations: 0 / 1.342 GB, free: 1.098 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009069/0.3958, allocations: 0.6008 MB / 1.343 GB, free: 436 kB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.3958, allocations: 0 / 1.343 GB, free: 436 kB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.34e-05/0.3959, allocations: 31.86 kB / 1.343 GB, free: 404 kB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.874e-05/0.396, allocations: 24.84 kB / 1.343 GB, free: 376 kB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.396, allocations: 8 kB / 1.343 GB, free: 368 kB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00108/0.3971, allocations: 1.303 MB / 1.344 GB, free: 14.94 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.239e-06/0.3971, allocations: 8.016 kB / 1.344 GB, free: 14.93 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003617/0.3974, allocations: 315.2 kB / 1.344 GB, free: 14.59 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 8.679e-05/0.3975, allocations: 39.78 kB / 1.345 GB, free: 14.55 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.175e-05/0.3976, allocations: 8 kB / 1.345 GB, free: 14.54 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.3977, allocations: 20.17 kB / 1.345 GB, free: 14.52 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.481e-05/0.3978, allocations: 19.86 kB / 1.345 GB, free: 14.5 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.3978, allocations: 4 kB / 1.345 GB, free: 14.5 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002034/0.398, allocations: 189.2 kB / 1.345 GB, free: 14.31 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.398, allocations: 3.938 kB / 1.345 GB, free: 14.31 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004207/0.3984, allocations: 83.84 kB / 1.345 GB, free: 14.23 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.00072/0.3991, allocations: 0.8547 MB / 1.346 GB, free: 13.32 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004934/0.3996, allocations: 262.4 kB / 1.346 GB, free: 13.05 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3996, allocations: 0 / 1.346 GB, free: 13.05 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.3999, allocations: 179.7 kB / 1.346 GB, free: 12.86 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004912/0.4003, allocations: 66.33 kB / 1.346 GB, free: 12.8 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00346/0.4038, allocations: 2.728 MB / 1.349 GB, free: 9.887 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001969/0.404, allocations: 182.1 kB / 1.349 GB, free: 9.691 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001319/0.4041, allocations: 42.25 kB / 1.349 GB, free: 9.652 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.4043, allocations: 87.41 kB / 1.349 GB, free: 9.566 MB / 1.045 GB Notification: Performance of SimCode: time 3.61e-07/0.4043, allocations: 0 / 1.349 GB, free: 9.566 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03188/0.4361, allocations: 5.835 MB / 1.355 GB, free: 3.953 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.22, allocations: 5.969 kB / 1.355 GB, free: 3.949 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: 19.176258111023344]