Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001313/0.001313, allocations: 116.9 kB / 17.17 MB, free: 5.906 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.001347/0.001347, allocations: 209.2 kB / 20.13 MB, free: 2.969 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.469/1.469, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.926/2.926, allocations: 0.5003 GB / 0.8026 GB, free: 6.715 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_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.001915/0.001915, allocations: 63.89 kB / 1.165 GB, free: 0.5156 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9791/0.981, allocations: 179 MB / 1.34 GB, free: 16.19 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005716/0.9867, allocations: 3.901 MB / 1.344 GB, free: 13.55 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002781/0.9895, allocations: 1.808 MB / 1.346 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001945/0.9897, allocations: 9.438 kB / 1.346 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001286/0.991, allocations: 0.4931 MB / 1.346 GB, free: 12 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.000512/0.9915, allocations: 226.1 kB / 1.346 GB, free: 11.87 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005326/0.992, allocations: 209.8 kB / 1.347 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005283/0.9925, allocations: 473.4 kB / 1.347 GB, free: 11.57 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004781/0.993, allocations: 297.6 kB / 1.347 GB, free: 11.44 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002286/0.9933, allocations: 200.5 kB / 1.348 GB, free: 11.35 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003875/0.9936, allocations: 228.9 kB / 1.348 GB, free: 11.26 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.081e-05/0.9937, allocations: 31.5 kB / 1.348 GB, free: 11.26 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004365/0.9941, allocations: 256.6 kB / 1.348 GB, free: 11.17 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.9943, allocations: 132.3 kB / 1.348 GB, free: 11.11 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001582/0.9944, allocations: 166.7 kB / 1.348 GB, free: 11.02 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006833/0.9951, allocations: 0.4999 MB / 1.349 GB, free: 10.84 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.9951, allocations: 0 / 1.349 GB, free: 10.84 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.633e-06/0.9951, allocations: 0 / 1.349 GB, free: 10.84 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.656e-06/0.9951, allocations: 1.219 kB / 1.349 GB, free: 10.84 MB / 1.061 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.001043/0.9962, allocations: 0.6389 MB / 1.349 GB, free: 10.32 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.9962, allocations: 9.781 kB / 1.349 GB, free: 10.32 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.53e-05/0.9962, allocations: 9 kB / 1.349 GB, free: 10.32 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.906e-05/0.9963, allocations: 69.44 kB / 1.349 GB, free: 10.26 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009357/0.9973, allocations: 134.5 kB / 1.35 GB, free: 10.23 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.9976, allocations: 296 kB / 1.35 GB, free: 9.977 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.9976, allocations: 32.69 kB / 1.35 GB, free: 9.957 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.347e-05/0.9977, allocations: 29.66 kB / 1.35 GB, free: 9.945 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006665/0.9984, allocations: 466 kB / 1.35 GB, free: 9.691 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.9984, allocations: 0 / 1.35 GB, free: 9.691 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.55e-05/0.9984, allocations: 12.16 kB / 1.35 GB, free: 9.684 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.813e-05/0.9985, allocations: 35.09 kB / 1.35 GB, free: 9.676 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005137/0.999, allocations: 321 kB / 1.351 GB, free: 9.57 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/1.001, allocations: 2.192 MB / 1.353 GB, free: 7.629 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000366/1.001, allocations: 233 kB / 1.353 GB, free: 7.469 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/1.001, allocations: 100 kB / 1.353 GB, free: 7.434 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/1.001, allocations: 6.141 kB / 1.353 GB, free: 7.43 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/1.001, allocations: 32.59 kB / 1.353 GB, free: 7.391 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/1.001, allocations: 4 kB / 1.353 GB, free: 7.387 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0006012/1.002, allocations: 303 kB / 1.354 GB, free: 7.191 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/1.002, allocations: 52.62 kB / 1.354 GB, free: 7.129 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002651/1.002, allocations: 271.5 kB / 1.354 GB, free: 6.973 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/1.002, allocations: 32.05 kB / 1.354 GB, free: 6.938 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.984e-05/1.002, allocations: 208.6 kB / 1.354 GB, free: 6.762 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.118e-05/1.002, allocations: 54.38 kB / 1.354 GB, free: 6.719 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.05e-05/1.003, allocations: 51.48 kB / 1.354 GB, free: 6.68 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.191e-05/1.003, allocations: 334.5 kB / 1.355 GB, free: 6.355 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.768e-05/1.003, allocations: 54.61 kB / 1.355 GB, free: 6.34 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/1.003, allocations: 144.1 kB / 1.355 GB, free: 6.211 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002223/1.003, allocations: 215.7 kB / 1.355 GB, free: 6.043 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/1.003, allocations: 0.9375 kB / 1.355 GB, free: 6.043 MB / 1.061 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000392/1.003, allocations: 259.3 kB / 1.355 GB, free: 5.922 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/1.003, allocations: 10.77 kB / 1.355 GB, free: 5.918 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/1.004, allocations: 3.281 kB / 1.355 GB, free: 5.918 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001817/1.004, allocations: 31.52 kB / 1.355 GB, free: 5.902 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/1.004, allocations: 55.28 kB / 1.355 GB, free: 5.891 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008072/1.005, allocations: 1.424 MB / 1.357 GB, free: 4.469 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/1.005, allocations: 32.17 kB / 1.357 GB, free: 4.445 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/1.005, allocations: 8.75 kB / 1.357 GB, free: 4.445 MB / 1.061 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.0001306/1.005, allocations: 172.5 kB / 1.357 GB, free: 4.301 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.87e-05/1.005, allocations: 27.56 kB / 1.357 GB, free: 4.285 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.02e-05/1.005, allocations: 32.17 kB / 1.357 GB, free: 4.262 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/1.005, allocations: 0.9375 kB / 1.357 GB, free: 4.262 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/1.005, allocations: 1.531 kB / 1.357 GB, free: 4.262 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/1.005, allocations: 0.75 kB / 1.357 GB, free: 4.262 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008186/1.006, allocations: 0.7033 MB / 1.358 GB, free: 3.715 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/1.006, allocations: 2.938 kB / 1.358 GB, free: 3.715 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.702e-05/1.006, allocations: 28.17 kB / 1.358 GB, free: 3.707 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.368e-05/1.006, allocations: 24.67 kB / 1.358 GB, free: 3.695 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/1.006, allocations: 3.672 kB / 1.358 GB, free: 3.695 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006928/1.007, allocations: 1.415 MB / 1.359 GB, free: 2.281 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/1.007, allocations: 1.562 kB / 1.359 GB, free: 2.281 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002921/1.007, allocations: 316.2 kB / 1.359 GB, free: 2.031 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.673e-05/1.007, allocations: 127 kB / 1.359 GB, free: 1.906 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.764e-05/1.007, allocations: 4.062 kB / 1.359 GB, free: 1.906 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/1.007, allocations: 15.66 kB / 1.359 GB, free: 1.898 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.558e-05/1.007, allocations: 14.56 kB / 1.359 GB, free: 1.895 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/1.007, allocations: 9.75 kB / 1.359 GB, free: 1.891 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001808/1.008, allocations: 189.1 kB / 1.36 GB, free: 1.781 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.008, allocations: 1.219 kB / 1.36 GB, free: 1.781 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000424/1.008, allocations: 79.3 kB / 1.36 GB, free: 1.762 MB / 1.061 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.0004633/1.008, allocations: 0.8516 MB / 1.361 GB, free: 0.9727 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004197/1.009, allocations: 270 kB / 1.361 GB, free: 0.8086 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.009, allocations: 4.125 kB / 1.361 GB, free: 0.8047 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001905/1.009, allocations: 178.9 kB / 1.361 GB, free: 0.6719 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000481/1.01, allocations: 62.33 kB / 1.361 GB, free: 0.6523 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003208/1.013, allocations: 2.724 MB / 1.364 GB, free: 14.64 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004971/1.013, allocations: 0.7909 MB / 1.365 GB, free: 13.93 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001509/1.013, allocations: 45.52 kB / 1.365 GB, free: 13.92 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/1.014, allocations: 83.17 kB / 1.365 GB, free: 13.86 MB / 1.076 GB Notification: Performance of SimCode: time 4.21e-07/1.014, allocations: 0 / 1.365 GB, free: 13.86 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02959/1.043, allocations: 5.47 MB / 1.37 GB, free: 13.16 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/11.22, allocations: 11.92 kB / 1.37 GB, free: 13.15 MB / 1.076 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 17.769699427008163]