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.001461/0.001461, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001667/0.001667, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.06 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.321/2.321, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.00142, allocations: 59.91 kB / 0.9515 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7833/0.7848, allocations: 140.4 MB / 1.089 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005046/0.7899, allocations: 3.831 MB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002719/0.7926, allocations: 1.735 MB / 1.094 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.7928, allocations: 10.41 kB / 1.094 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.7943, allocations: 497.8 kB / 1.095 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006693/0.7949, allocations: 220.8 kB / 1.095 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006367/0.7956, allocations: 208.9 kB / 1.095 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006327/0.7962, allocations: 483.4 kB / 1.095 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006387/0.7969, allocations: 364.3 kB / 1.096 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.7972, allocations: 198.5 kB / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004389/0.7976, allocations: 211.4 kB / 1.096 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.442e-05/0.7977, allocations: 28.66 kB / 1.096 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005783/0.7983, allocations: 247.9 kB / 1.096 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.7985, allocations: 132.8 kB / 1.097 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002133/0.7987, allocations: 166.5 kB / 1.097 GB, free: 420 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008661/0.7996, allocations: 0.5047 MB / 1.097 GB, free: 236 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.7996, allocations: 1.641 kB / 1.097 GB, free: 236 kB / 0.8575 GB Notification: Performance of FrontEnd: time 2.164e-06/0.7996, allocations: 0 / 1.097 GB, free: 236 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.7996, allocations: 0 / 1.097 GB, free: 236 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.001049/0.8007, allocations: 0.6218 MB / 1.098 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.8007, allocations: 9.281 kB / 1.098 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009424/0.8017, allocations: 133.8 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003887/0.8021, allocations: 299.7 kB / 1.098 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.8021, allocations: 20.88 kB / 1.098 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.118e-05/0.8021, allocations: 34.05 kB / 1.098 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007493/0.8029, allocations: 465.6 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.8029, allocations: 1.859 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.826e-05/0.803, allocations: 15.78 kB / 1.099 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.959e-05/0.803, allocations: 31.42 kB / 1.099 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005332/0.8036, allocations: 324.5 kB / 1.099 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002265/0.8059, allocations: 2.171 MB / 1.101 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004071/0.8063, allocations: 256 kB / 1.101 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/0.8066, allocations: 109.8 kB / 1.102 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.8066, allocations: 1.594 kB / 1.102 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.8066, allocations: 37.05 kB / 1.102 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=14): time 1.864e-06/0.8066, allocations: 96 / 1.102 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14): time 0.0006394/0.8073, allocations: 304.5 kB / 1.102 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.8073, allocations: 53.03 kB / 1.102 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000323/0.8077, allocations: 275.5 kB / 1.102 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.8077, allocations: 26.52 kB / 1.102 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.8078, allocations: 205.7 kB / 1.102 GB, free: 12.23 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.247e-05/0.8079, allocations: 50.92 kB / 1.102 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.1e-05/0.808, allocations: 50.19 kB / 1.102 GB, free: 12.15 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.8081, allocations: 335.3 kB / 1.103 GB, free: 11.83 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.8082, allocations: 58.12 kB / 1.103 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.8084, allocations: 147.6 kB / 1.103 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/0.8086, allocations: 222.1 kB / 1.103 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.8086, allocations: 1.25 kB / 1.103 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004418/0.8091, allocations: 263.1 kB / 1.103 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.8091, allocations: 11.52 kB / 1.103 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.8091, allocations: 2.562 kB / 1.103 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001695/0.8093, allocations: 26.75 kB / 1.103 GB, free: 11.36 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.8095, allocations: 47.77 kB / 1.104 GB, free: 11.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.8106, allocations: 1.421 MB / 1.105 GB, free: 9.938 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001935/0.8108, allocations: 31.97 kB / 1.105 GB, free: 9.914 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.8108, allocations: 12.66 kB / 1.105 GB, free: 9.91 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.0002154/0.8111, allocations: 174.6 kB / 1.105 GB, free: 9.762 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.611e-05/0.8111, allocations: 23.75 kB / 1.105 GB, free: 9.75 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.066e-05/0.8112, allocations: 27.41 kB / 1.105 GB, free: 9.73 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.8112, allocations: 6 kB / 1.105 GB, free: 9.727 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.8112, allocations: 1.422 kB / 1.105 GB, free: 9.727 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.8112, allocations: 1.109 kB / 1.105 GB, free: 9.727 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.8123, allocations: 0.7036 MB / 1.106 GB, free: 9.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.8123, allocations: 1.953 kB / 1.106 GB, free: 9.18 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.804e-05/0.8124, allocations: 25.36 kB / 1.106 GB, free: 9.176 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.989e-05/0.8125, allocations: 28.28 kB / 1.106 GB, free: 9.16 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.8126, allocations: 10.69 kB / 1.106 GB, free: 9.152 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009468/0.8135, allocations: 1.416 MB / 1.107 GB, free: 7.738 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.8135, allocations: 2.125 kB / 1.107 GB, free: 7.738 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003527/0.8139, allocations: 316.7 kB / 1.108 GB, free: 7.488 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.814, allocations: 114.8 kB / 1.108 GB, free: 7.375 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.102e-05/0.814, allocations: 9.109 kB / 1.108 GB, free: 7.371 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/0.8142, allocations: 11 kB / 1.108 GB, free: 7.367 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/0.8142, allocations: 26.42 kB / 1.108 GB, free: 7.352 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.8143, allocations: 5.125 kB / 1.108 GB, free: 7.352 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002011/0.8145, allocations: 190.3 kB / 1.108 GB, free: 7.242 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8145, allocations: 0 / 1.108 GB, free: 7.242 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004455/0.8149, allocations: 76.75 kB / 1.108 GB, free: 7.227 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.0001534/0.8151, allocations: 102.1 kB / 1.108 GB, free: 7.133 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004733/0.8156, allocations: 275.9 kB / 1.108 GB, free: 6.965 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.8156, allocations: 1.281 kB / 1.108 GB, free: 6.965 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002102/0.8158, allocations: 181.6 kB / 1.109 GB, free: 6.832 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004957/0.8163, allocations: 66.97 kB / 1.109 GB, free: 6.809 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009081/0.8172, allocations: 0.573 MB / 1.109 GB, free: 6.418 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.8176, allocations: 0.7896 MB / 1.11 GB, free: 5.711 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.455e-05/0.8176, allocations: 21.28 kB / 1.11 GB, free: 5.703 MB / 0.8731 GB Notification: Performance of SimCode: time 4.2e-07/0.8177, allocations: 4 kB / 1.11 GB, free: 5.699 MB / 0.8731 GB Notification: Performance of Templates: time 0.008143/0.8258, allocations: 4.409 MB / 1.114 GB, free: 5.34 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