Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008691/0.008691, allocations: 101.1 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001843/0.001843, allocations: 186.8 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.59/2.59, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 59.38 kB / 0.9508 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3436, allocations: 140.4 MB / 1.088 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005482/0.3492, allocations: 3.836 MB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002699/0.3519, allocations: 1.714 MB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.3521, allocations: 8 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.3535, allocations: 0.4989 MB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000515/0.354, allocations: 222.9 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005119/0.3545, allocations: 206.2 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005233/0.3551, allocations: 490 kB / 1.095 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005742/0.3557, allocations: 361.1 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002236/0.3559, allocations: 195.3 kB / 1.095 GB, free: 9.977 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003853/0.3563, allocations: 215.2 kB / 1.095 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.335e-05/0.3563, allocations: 28 kB / 1.095 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004114/0.3568, allocations: 247.4 kB / 1.096 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.3569, allocations: 127.7 kB / 1.096 GB, free: 9.371 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001802/0.3571, allocations: 175.2 kB / 1.096 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005699/0.3577, allocations: 0.4945 MB / 1.096 GB, free: 8.703 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.3577, allocations: 3.938 kB / 1.096 GB, free: 8.699 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.873e-06/0.3577, allocations: 0 / 1.096 GB, free: 8.699 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.243e-05/0.3577, allocations: 0 / 1.096 GB, free: 8.699 MB / 0.8575 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.001021/0.3587, allocations: 0.6354 MB / 1.097 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.3588, allocations: 12.03 kB / 1.097 GB, free: 8.004 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008611/0.3596, allocations: 128.4 kB / 1.097 GB, free: 7.879 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.3601, allocations: 300.2 kB / 1.098 GB, free: 7.547 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.3601, allocations: 21.03 kB / 1.098 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.387e-05/0.3601, allocations: 32.36 kB / 1.098 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006384/0.3608, allocations: 463.9 kB / 1.098 GB, free: 7.004 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.3608, allocations: 4 kB / 1.098 GB, free: 7 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.3608, allocations: 15.98 kB / 1.098 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.46e-05/0.3609, allocations: 28.55 kB / 1.098 GB, free: 6.957 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004935/0.3614, allocations: 321.9 kB / 1.098 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002143/0.3635, allocations: 2.185 MB / 1.1 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003956/0.364, allocations: 251.8 kB / 1.101 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002385/0.3642, allocations: 104.8 kB / 1.101 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.3642, allocations: 0 / 1.101 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.3643, allocations: 30.56 kB / 1.101 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.3643, allocations: 3.938 kB / 1.101 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0006426/0.3649, allocations: 307.5 kB / 1.101 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/0.365, allocations: 59.34 kB / 1.101 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003288/0.3653, allocations: 262.5 kB / 1.101 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.3654, allocations: 33.7 kB / 1.102 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.3655, allocations: 207.8 kB / 1.102 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.91e-05/0.3656, allocations: 43.36 kB / 1.102 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.581e-05/0.3657, allocations: 53.84 kB / 1.102 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001864/0.3659, allocations: 338.8 kB / 1.102 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.366, allocations: 56.44 kB / 1.102 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.3662, allocations: 144.1 kB / 1.102 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002829/0.3665, allocations: 217.8 kB / 1.103 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.3665, allocations: 4 kB / 1.103 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004259/0.3669, allocations: 261.9 kB / 1.103 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.3669, allocations: 8 kB / 1.103 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.367, allocations: 4 kB / 1.103 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002323/0.3672, allocations: 24.84 kB / 1.103 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.3674, allocations: 52.28 kB / 1.103 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.3688, allocations: 1.422 MB / 1.104 GB, free: 68 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001699/0.369, allocations: 31.62 kB / 1.104 GB, free: 36 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.369, allocations: 12 kB / 1.104 GB, free: 24 kB / 0.8575 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.0002589/0.3693, allocations: 173.6 kB / 1.104 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.784e-05/0.3694, allocations: 23.72 kB / 1.104 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.175e-05/0.3694, allocations: 29.83 kB / 1.105 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3695, allocations: 0 / 1.105 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3695, allocations: 8.047 kB / 1.105 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3695, allocations: 0 / 1.105 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.3705, allocations: 0.6986 MB / 1.105 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.705e-05/0.3705, allocations: 12.25 kB / 1.105 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.493e-05/0.3706, allocations: 23.98 kB / 1.105 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.716e-05/0.3707, allocations: 24.78 kB / 1.105 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.3707, allocations: 8 kB / 1.105 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.3717, allocations: 1.414 MB / 1.107 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3718, allocations: 0 / 1.107 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003608/0.3721, allocations: 325.2 kB / 1.107 GB, free: 13.01 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.592e-05/0.3722, allocations: 116.7 kB / 1.107 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.593e-05/0.3723, allocations: 8 kB / 1.107 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.3724, allocations: 12 kB / 1.107 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.066e-05/0.3725, allocations: 19.86 kB / 1.107 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.3725, allocations: 8 kB / 1.107 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001705/0.3727, allocations: 190 kB / 1.107 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3727, allocations: 0 / 1.107 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003739/0.3731, allocations: 71.84 kB / 1.107 GB, free: 12.58 MB / 0.8731 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.0001234/0.3732, allocations: 111.2 kB / 1.107 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004813/0.3737, allocations: 278.3 kB / 1.108 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3737, allocations: 0.75 kB / 1.108 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002132/0.3739, allocations: 178.9 kB / 1.108 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004827/0.3744, allocations: 75 kB / 1.108 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009242/0.3753, allocations: 0.5304 MB / 1.108 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.3758, allocations: 0.7987 MB / 1.109 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001309/0.3759, allocations: 42.25 kB / 1.109 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.858e-05/0.376, allocations: 19.44 kB / 1.109 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.376, allocations: 0 / 1.109 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of Templates: time 0.006124/0.3821, allocations: 2.725 MB / 1.112 GB, free: 7.766 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches