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.001903/0.001903, allocations: 99.64 kB / 18.95 MB, free: 2.676 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.002441/0.002441, allocations: 214.5 kB / 22.24 MB, free: 5.258 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.577/1.577, allocations: 230.6 MB / 256 MB, free: 7.801 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.37/3.37, allocations: 0.4892 GB / 0.7943 GB, free: 35.52 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: translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor") [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.002201/0.002201, allocations: 66.78 kB / 1.154 GB, free: 25.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4545/0.4567, allocations: 176.1 MB / 1.326 GB, free: 1.887 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006576/0.4632, allocations: 3.796 MB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00348/0.4667, allocations: 1.706 MB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001977/0.4669, allocations: 15.88 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001514/0.4684, allocations: 486.2 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0006203/0.469, allocations: 230.8 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005772/0.4696, allocations: 199.5 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005961/0.4702, allocations: 482.4 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006003/0.4708, allocations: 293.3 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002681/0.4711, allocations: 195.4 kB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004646/0.4716, allocations: 215.2 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.028e-05/0.4716, allocations: 28 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004367/0.4721, allocations: 223.4 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.4722, allocations: 127.6 kB / 1.333 GB, free: 9.914 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.4724, allocations: 151.3 kB / 1.333 GB, free: 9.766 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0007046/0.4731, allocations: 0.502 MB / 1.334 GB, free: 9.262 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.4731, allocations: 4 kB / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.204e-06/0.4731, allocations: 0 / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.336e-05/0.4731, allocations: 0 / 1.334 GB, free: 9.258 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.001193/0.4743, allocations: 0.5673 MB / 1.334 GB, free: 8.66 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.4743, allocations: 16.02 kB / 1.334 GB, free: 8.645 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009638/0.4753, allocations: 132.6 kB / 1.335 GB, free: 8.516 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005325/0.4758, allocations: 238.5 kB / 1.335 GB, free: 8.258 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.618e-05/0.4759, allocations: 21.03 kB / 1.335 GB, free: 8.234 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.403e-05/0.476, allocations: 32.36 kB / 1.335 GB, free: 8.203 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.4771, allocations: 0.5823 MB / 1.335 GB, free: 7.555 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.4771, allocations: 0 / 1.335 GB, free: 7.555 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.147e-05/0.4772, allocations: 15.98 kB / 1.335 GB, free: 7.539 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.586e-05/0.4772, allocations: 28.64 kB / 1.335 GB, free: 7.512 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005341/0.4778, allocations: 326.2 kB / 1.336 GB, free: 7.195 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002259/0.48, allocations: 1.509 MB / 1.337 GB, free: 5.613 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004161/0.4804, allocations: 162.6 kB / 1.337 GB, free: 5.445 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000239/0.4807, allocations: 96.8 kB / 1.338 GB, free: 5.348 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.4807, allocations: 0 / 1.338 GB, free: 5.348 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.4807, allocations: 42.56 kB / 1.338 GB, free: 5.297 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.4807, allocations: 0 / 1.338 GB, free: 5.297 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0006305/0.4814, allocations: 226.4 kB / 1.338 GB, free: 5.07 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.4814, allocations: 51.41 kB / 1.338 GB, free: 5.008 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002627/0.4817, allocations: 232 kB / 1.338 GB, free: 4.773 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.4817, allocations: 29.7 kB / 1.338 GB, free: 4.738 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.4819, allocations: 220.1 kB / 1.338 GB, free: 4.516 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.309e-05/0.4819, allocations: 51.59 kB / 1.338 GB, free: 4.465 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.377e-05/0.482, allocations: 49.88 kB / 1.338 GB, free: 4.406 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002043/0.4822, allocations: 330.8 kB / 1.339 GB, free: 4.074 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.4823, allocations: 60.44 kB / 1.339 GB, free: 4.016 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.4825, allocations: 140.8 kB / 1.339 GB, free: 3.84 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002964/0.4828, allocations: 218.9 kB / 1.339 GB, free: 3.586 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4828, allocations: 0 / 1.339 GB, free: 3.586 MB / 1.029 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004401/0.4833, allocations: 272.5 kB / 1.339 GB, free: 3.312 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.4833, allocations: 8 kB / 1.339 GB, free: 3.305 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.4833, allocations: 4 kB / 1.339 GB, free: 3.301 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002079/0.4835, allocations: 24.94 kB / 1.339 GB, free: 3.273 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001928/0.4837, allocations: 51.86 kB / 1.339 GB, free: 3.223 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/0.485, allocations: 1.303 MB / 1.341 GB, free: 1.82 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001688/0.4852, allocations: 27.78 kB / 1.341 GB, free: 1.793 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.4852, allocations: 8 kB / 1.341 GB, free: 1.785 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.0002072/0.4854, allocations: 165.8 kB / 1.341 GB, free: 1.613 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.591e-05/0.4855, allocations: 19.84 kB / 1.341 GB, free: 1.594 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.235e-05/0.4855, allocations: 25.47 kB / 1.341 GB, free: 1.566 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.4855, allocations: 0 / 1.341 GB, free: 1.566 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.4855, allocations: 0 / 1.341 GB, free: 1.566 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.4855, allocations: 3.984 kB / 1.341 GB, free: 1.562 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009088/0.4865, allocations: 0.5622 MB / 1.342 GB, free: 0.9414 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.4865, allocations: 0 / 1.342 GB, free: 0.9414 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.024e-05/0.4865, allocations: 24 kB / 1.342 GB, free: 0.918 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.222e-05/0.4866, allocations: 20.84 kB / 1.342 GB, free: 0.8945 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.4866, allocations: 11.98 kB / 1.342 GB, free: 0.8828 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.4878, allocations: 1.284 MB / 1.343 GB, free: 15.5 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.238e-06/0.4878, allocations: 11.95 kB / 1.343 GB, free: 15.49 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003935/0.4882, allocations: 313.2 kB / 1.343 GB, free: 15.14 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 9.351e-05/0.4883, allocations: 27.89 kB / 1.343 GB, free: 15.12 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.4883, allocations: 8 kB / 1.343 GB, free: 15.11 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/0.4885, allocations: 20.14 kB / 1.343 GB, free: 15.09 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.105e-05/0.4885, allocations: 11.98 kB / 1.343 GB, free: 15.08 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.4885, allocations: 15.92 kB / 1.343 GB, free: 15.06 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001625/0.4887, allocations: 161.6 kB / 1.343 GB, free: 14.91 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.4887, allocations: 3.938 kB / 1.343 GB, free: 14.9 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004188/0.4891, allocations: 83.78 kB / 1.343 GB, free: 14.82 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.0001415/0.4893, allocations: 99.19 kB / 1.344 GB, free: 14.71 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005368/0.4898, allocations: 278.4 kB / 1.344 GB, free: 14.43 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4898, allocations: 0 / 1.344 GB, free: 14.43 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002552/0.4901, allocations: 178.5 kB / 1.344 GB, free: 14.24 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005301/0.4906, allocations: 51.48 kB / 1.344 GB, free: 14.2 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.4916, allocations: 0.5542 MB / 1.345 GB, free: 13.6 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.4918, allocations: 186.1 kB / 1.345 GB, free: 13.4 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001376/0.492, allocations: 37.92 kB / 1.345 GB, free: 13.36 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.401e-05/0.492, allocations: 19.44 kB / 1.345 GB, free: 13.34 MB / 1.045 GB Notification: Performance of SimCode: time 2.91e-07/0.492, allocations: 0 / 1.345 GB, free: 13.34 MB / 1.045 GB Notification: Performance of Templates: time 0.007703/0.4997, allocations: 2.784 MB / 1.348 GB, free: 10.61 MB / 1.045 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 400] 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/jenkins/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: 10.033476339653134]