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.00162/0.00162, allocations: 110.6 kB / 16.41 MB, free: 6.445 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.001868/0.001868, allocations: 187 kB / 17.34 MB, free: 5.742 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.354/1.354, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.275/2.275, allocations: 390.3 MB / 0.6655 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 63.91 kB / 0.9515 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7483/0.7497, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004915/0.7547, allocations: 3.835 MB / 1.092 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002581/0.7573, allocations: 1.727 MB / 1.094 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/0.7575, allocations: 9.906 kB / 1.094 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001286/0.7588, allocations: 0.4897 MB / 1.095 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005121/0.7594, allocations: 221.8 kB / 1.095 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005499/0.7599, allocations: 204 kB / 1.095 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005786/0.7605, allocations: 484.4 kB / 1.095 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000573/0.7611, allocations: 364.8 kB / 1.096 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002515/0.7613, allocations: 205.6 kB / 1.096 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004027/0.7618, allocations: 212.2 kB / 1.096 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.63e-05/0.7618, allocations: 28.22 kB / 1.096 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004383/0.7623, allocations: 244.6 kB / 1.096 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.7624, allocations: 132.7 kB / 1.097 GB, free: 0.5352 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.7626, allocations: 166.6 kB / 1.097 GB, free: 452 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000648/0.7632, allocations: 0.5015 MB / 1.097 GB, free: 272 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.7632, allocations: 0 / 1.097 GB, free: 272 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7633, allocations: 0.8125 kB / 1.097 GB, free: 272 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.228e-05/0.7633, allocations: 0 / 1.097 GB, free: 272 kB / 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.0009251/0.7642, allocations: 0.6315 MB / 1.098 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.7642, allocations: 9.281 kB / 1.098 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009155/0.7652, allocations: 133.8 kB / 1.098 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003837/0.7656, allocations: 299.7 kB / 1.098 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.7656, allocations: 20.44 kB / 1.098 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.728e-05/0.7656, allocations: 31.05 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007271/0.7664, allocations: 465.8 kB / 1.099 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.7664, allocations: 5.047 kB / 1.099 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.762e-05/0.7664, allocations: 15.39 kB / 1.099 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.529e-05/0.7665, allocations: 31.45 kB / 1.099 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005489/0.7671, allocations: 317.1 kB / 1.099 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.7692, allocations: 2.188 MB / 1.101 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003841/0.7696, allocations: 251.2 kB / 1.101 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002495/0.7699, allocations: 105.8 kB / 1.102 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.7699, allocations: 5.562 kB / 1.102 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.77, allocations: 37.39 kB / 1.102 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.77, allocations: 0 / 1.102 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14): time 0.0006304/0.7706, allocations: 295.7 kB / 1.102 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.7706, allocations: 57.62 kB / 1.102 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003139/0.771, allocations: 271.4 kB / 1.102 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.771, allocations: 30.8 kB / 1.102 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.7711, allocations: 204.9 kB / 1.102 GB, free: 12.26 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.505e-05/0.7712, allocations: 51 kB / 1.102 GB, free: 12.22 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.943e-05/0.7713, allocations: 53.61 kB / 1.102 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.7714, allocations: 335.3 kB / 1.103 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.7715, allocations: 55.61 kB / 1.103 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.7717, allocations: 147.7 kB / 1.103 GB, free: 11.7 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.7719, allocations: 217.3 kB / 1.103 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.772, allocations: 1.062 kB / 1.103 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004315/0.7724, allocations: 267.7 kB / 1.103 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.7724, allocations: 6.625 kB / 1.103 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.7724, allocations: 2.656 kB / 1.103 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001571/0.7726, allocations: 26.72 kB / 1.103 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.7728, allocations: 48.5 kB / 1.104 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/0.7739, allocations: 1.427 MB / 1.105 GB, free: 9.961 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001858/0.7741, allocations: 29.06 kB / 1.105 GB, free: 9.941 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.7741, allocations: 8.531 kB / 1.105 GB, free: 9.941 MB / 0.8731 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.0002046/0.7743, allocations: 169.6 kB / 1.105 GB, free: 9.797 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.188e-05/0.7744, allocations: 27.66 kB / 1.105 GB, free: 9.781 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.677e-05/0.7744, allocations: 28.33 kB / 1.105 GB, free: 9.762 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.7744, allocations: 5.438 kB / 1.105 GB, free: 9.758 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.7745, allocations: 8.5 kB / 1.105 GB, free: 9.75 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.7745, allocations: 1.156 kB / 1.105 GB, free: 9.75 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.7756, allocations: 0.7043 MB / 1.106 GB, free: 9.203 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.7756, allocations: 5.562 kB / 1.106 GB, free: 9.199 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.707e-05/0.7757, allocations: 21.39 kB / 1.106 GB, free: 9.199 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.47e-05/0.7758, allocations: 29.61 kB / 1.106 GB, free: 9.184 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.7758, allocations: 6.188 kB / 1.106 GB, free: 9.18 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009726/0.7768, allocations: 1.411 MB / 1.107 GB, free: 7.77 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.7768, allocations: 2.844 kB / 1.107 GB, free: 7.77 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003591/0.7772, allocations: 320.7 kB / 1.108 GB, free: 7.516 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.7773, allocations: 111.1 kB / 1.108 GB, free: 7.406 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.219e-05/0.7774, allocations: 7.375 kB / 1.108 GB, free: 7.402 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.7775, allocations: 12.36 kB / 1.108 GB, free: 7.398 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.707e-05/0.7776, allocations: 22.31 kB / 1.108 GB, free: 7.387 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.7776, allocations: 5.562 kB / 1.108 GB, free: 7.387 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002127/0.7778, allocations: 190.2 kB / 1.108 GB, free: 7.277 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7778, allocations: 0 / 1.108 GB, free: 7.277 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004643/0.7783, allocations: 80.56 kB / 1.108 GB, free: 7.258 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.0001267/0.7784, allocations: 111.3 kB / 1.108 GB, free: 7.156 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005051/0.7789, allocations: 267.2 kB / 1.108 GB, free: 6.996 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.7789, allocations: 2.062 kB / 1.108 GB, free: 6.996 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000211/0.7792, allocations: 185.3 kB / 1.109 GB, free: 6.859 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004747/0.7796, allocations: 53.84 kB / 1.109 GB, free: 6.848 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009665/0.7806, allocations: 0.5912 MB / 1.109 GB, free: 6.441 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003943/0.781, allocations: 0.7904 MB / 1.11 GB, free: 5.734 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.529e-05/0.7811, allocations: 21.67 kB / 1.11 GB, free: 5.727 MB / 0.8731 GB Notification: Performance of SimCode: time 4.11e-07/0.7811, allocations: 0 / 1.11 GB, free: 5.727 MB / 0.8731 GB Notification: Performance of Templates: time 0.008221/0.7893, allocations: 4.41 MB / 1.114 GB, free: 5.363 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/jenkins1/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