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.001469/0.001469, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001644/0.001644, allocations: 212.1 kB / 22.99 MB, free: 4.941 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.498/1.498, allocations: 230.6 MB / 256.8 MB, free: 7.797 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 3.305/3.305, allocations: 0.5107 GB / 0.8166 GB, free: 17.96 MB / 0.6231 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: translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_latest_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_latest_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.002171/0.002171, allocations: 73.48 kB / 1.187 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3472, allocations: 181.9 MB / 1.365 GB, free: 13.63 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006026/0.3532, allocations: 3.784 MB / 1.368 GB, free: 9.828 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.003286/0.3565, allocations: 1.71 MB / 1.37 GB, free: 8.109 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001978/0.3567, allocations: 11.88 kB / 1.37 GB, free: 8.098 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.3583, allocations: 494.1 kB / 1.37 GB, free: 7.613 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0006461/0.3589, allocations: 226.9 kB / 1.371 GB, free: 7.391 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006121/0.3595, allocations: 213.3 kB / 1.371 GB, free: 7.184 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0006079/0.3601, allocations: 478.4 kB / 1.371 GB, free: 6.715 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005754/0.3607, allocations: 293.4 kB / 1.372 GB, free: 6.426 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002712/0.361, allocations: 195.4 kB / 1.372 GB, free: 6.234 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004409/0.3614, allocations: 215.1 kB / 1.372 GB, free: 6.023 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.517e-05/0.3615, allocations: 28 kB / 1.372 GB, free: 5.996 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004326/0.3619, allocations: 215.5 kB / 1.372 GB, free: 5.785 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.362, allocations: 135.6 kB / 1.372 GB, free: 5.652 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001645/0.3622, allocations: 143.4 kB / 1.372 GB, free: 5.512 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006926/0.3629, allocations: 0.5059 MB / 1.373 GB, free: 5.004 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3629, allocations: 0 / 1.373 GB, free: 5.004 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3629, allocations: 0 / 1.373 GB, free: 5.004 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.637e-06/0.3629, allocations: 0 / 1.373 GB, free: 5.004 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.001102/0.364, allocations: 0.5713 MB / 1.374 GB, free: 4.402 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3641, allocations: 8.031 kB / 1.374 GB, free: 4.395 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009063/0.365, allocations: 132.6 kB / 1.374 GB, free: 4.266 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004674/0.3654, allocations: 233.9 kB / 1.374 GB, free: 4.012 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.3655, allocations: 25.02 kB / 1.374 GB, free: 3.984 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.362e-05/0.3655, allocations: 32.36 kB / 1.374 GB, free: 3.953 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008393/0.3664, allocations: 0.5862 MB / 1.375 GB, free: 3.301 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3664, allocations: 0 / 1.375 GB, free: 3.301 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.439e-05/0.3664, allocations: 12 kB / 1.375 GB, free: 3.289 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-05/0.3665, allocations: 36.62 kB / 1.375 GB, free: 3.254 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005255/0.367, allocations: 322.2 kB / 1.375 GB, free: 2.941 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002059/0.3691, allocations: 1.513 MB / 1.376 GB, free: 1.355 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003736/0.3694, allocations: 158.7 kB / 1.377 GB, free: 1.191 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002347/0.3697, allocations: 92.81 kB / 1.377 GB, free: 1.098 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.3697, allocations: 4 kB / 1.377 GB, free: 1.094 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.3697, allocations: 34.55 kB / 1.377 GB, free: 1.051 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.613e-06/0.3697, allocations: 4 kB / 1.377 GB, free: 1.047 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0006008/0.3703, allocations: 224.9 kB / 1.377 GB, free: 0.8203 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.3704, allocations: 55.41 kB / 1.377 GB, free: 0.7539 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002701/0.3706, allocations: 232 kB / 1.377 GB, free: 0.5195 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.3706, allocations: 25.7 kB / 1.377 GB, free: 500 kB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.3708, allocations: 216.1 kB / 1.377 GB, free: 276 kB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.397e-05/0.3709, allocations: 51.58 kB / 1.377 GB, free: 224 kB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.32e-05/0.3709, allocations: 57.83 kB / 1.377 GB, free: 156 kB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001934/0.3711, allocations: 334.8 kB / 1.378 GB, free: 15.82 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.3712, allocations: 56.44 kB / 1.378 GB, free: 15.76 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.3714, allocations: 148 kB / 1.378 GB, free: 15.58 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003/0.3717, allocations: 218.9 kB / 1.378 GB, free: 15.32 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3717, allocations: 0 / 1.378 GB, free: 15.32 MB / 1.076 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004426/0.3722, allocations: 260.9 kB / 1.378 GB, free: 15.06 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3722, allocations: 12.03 kB / 1.378 GB, free: 15.05 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.3722, allocations: 0 / 1.378 GB, free: 15.05 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001782/0.3724, allocations: 24.84 kB / 1.378 GB, free: 15.02 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.3726, allocations: 51.91 kB / 1.379 GB, free: 14.97 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.3738, allocations: 1.299 MB / 1.38 GB, free: 13.57 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.3739, allocations: 27.94 kB / 1.38 GB, free: 13.55 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.3739, allocations: 12.06 kB / 1.38 GB, free: 13.54 MB / 1.076 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.0001974/0.3741, allocations: 162.8 kB / 1.38 GB, free: 13.37 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.285e-05/0.3742, allocations: 27.8 kB / 1.38 GB, free: 13.34 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.222e-05/0.3743, allocations: 25.45 kB / 1.38 GB, free: 13.31 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3743, allocations: 4 kB / 1.38 GB, free: 13.31 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3743, allocations: 0 / 1.38 GB, free: 13.31 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3743, allocations: 0 / 1.38 GB, free: 13.31 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008886/0.3751, allocations: 0.5661 MB / 1.381 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.3752, allocations: 0 / 1.381 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.223e-05/0.3752, allocations: 27.92 kB / 1.381 GB, free: 12.66 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.689e-05/0.3753, allocations: 24.84 kB / 1.381 GB, free: 12.63 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.3753, allocations: 4 kB / 1.381 GB, free: 12.62 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.3764, allocations: 1.284 MB / 1.382 GB, free: 11.24 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/0.3764, allocations: 4.031 kB / 1.382 GB, free: 11.24 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003836/0.3768, allocations: 317.2 kB / 1.382 GB, free: 10.89 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 8.806e-05/0.3769, allocations: 31.84 kB / 1.382 GB, free: 10.86 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.259e-05/0.3769, allocations: 11.98 kB / 1.382 GB, free: 10.85 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.3771, allocations: 4.156 kB / 1.382 GB, free: 10.84 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.287e-05/0.3771, allocations: 23.92 kB / 1.382 GB, free: 10.82 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.3771, allocations: 7.938 kB / 1.382 GB, free: 10.81 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001766/0.3773, allocations: 161.8 kB / 1.382 GB, free: 10.66 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.3773, allocations: 3.938 kB / 1.382 GB, free: 10.65 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000411/0.3777, allocations: 79.78 kB / 1.383 GB, free: 10.57 MB / 1.076 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.0001222/0.3779, allocations: 99.25 kB / 1.383 GB, free: 10.47 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0005152/0.3784, allocations: 274.6 kB / 1.383 GB, free: 10.19 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3784, allocations: 0 / 1.383 GB, free: 10.19 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002345/0.3786, allocations: 178.5 kB / 1.383 GB, free: 10 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004731/0.3791, allocations: 60.09 kB / 1.383 GB, free: 9.945 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009982/0.3801, allocations: 0.5961 MB / 1.384 GB, free: 9.297 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002075/0.3803, allocations: 182.1 kB / 1.384 GB, free: 9.102 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.979e-05/0.3803, allocations: 19.44 kB / 1.384 GB, free: 9.082 MB / 1.076 GB Notification: Performance of SimCode: time 4.11e-07/0.3803, allocations: 0 / 1.384 GB, free: 9.082 MB / 1.076 GB Notification: Performance of Templates: time 0.007402/0.3877, allocations: 4.354 MB / 1.388 GB, free: 4.738 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 800] 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: 12.253702268004417]