Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001133/0.001133, allocations: 105.6 kB / 16.41 MB, free: 6.465 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.001063/0.001063, allocations: 187 kB / 17.34 MB, free: 5.719 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.345/1.345, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.499/2.499, allocations: 437 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002351/0.002351, allocations: 67.89 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8034/0.8058, allocations: 151.6 MB / 1.167 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006212/0.812, allocations: 3.837 MB / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.003085/0.8151, allocations: 1.737 MB / 1.173 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003008/0.8155, allocations: 11.94 kB / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001646/0.8171, allocations: 495.7 kB / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0006677/0.8178, allocations: 222.9 kB / 1.173 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006468/0.8185, allocations: 207.5 kB / 1.174 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0007305/0.8192, allocations: 474.4 kB / 1.174 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007113/0.8199, allocations: 364.9 kB / 1.174 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003061/0.8203, allocations: 195.3 kB / 1.175 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004573/0.8207, allocations: 223.1 kB / 1.175 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 7.117e-05/0.8208, allocations: 28 kB / 1.175 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005207/0.8213, allocations: 239.5 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.8215, allocations: 123.6 kB / 1.175 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002113/0.8217, allocations: 179.2 kB / 1.175 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0008113/0.8226, allocations: 0.5002 MB / 1.176 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.8226, allocations: 3.938 kB / 1.176 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.212e-06/0.8226, allocations: 0 / 1.176 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.399e-05/0.8226, allocations: 0 / 1.176 GB, free: 11.04 MB / 0.9044 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.001194/0.8238, allocations: 0.6316 MB / 1.176 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.8238, allocations: 12.92 kB / 1.176 GB, free: 10.35 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009641/0.8248, allocations: 136.4 kB / 1.177 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005099/0.8253, allocations: 291.6 kB / 1.177 GB, free: 9.891 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.8254, allocations: 25.03 kB / 1.177 GB, free: 9.867 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.669e-05/0.8254, allocations: 28.36 kB / 1.177 GB, free: 9.84 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006717/0.8261, allocations: 463.9 kB / 1.177 GB, free: 9.348 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.8261, allocations: 7.938 kB / 1.177 GB, free: 9.34 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.8262, allocations: 15.98 kB / 1.177 GB, free: 9.324 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.106e-05/0.8262, allocations: 32.53 kB / 1.177 GB, free: 9.293 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005491/0.8268, allocations: 317.9 kB / 1.178 GB, free: 8.984 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002355/0.8292, allocations: 2.177 MB / 1.18 GB, free: 6.594 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.8296, allocations: 247.8 kB / 1.18 GB, free: 6.324 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000228/0.8298, allocations: 108.8 kB / 1.18 GB, free: 6.215 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.268e-05/0.8298, allocations: 4 kB / 1.18 GB, free: 6.211 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.8299, allocations: 38.55 kB / 1.18 GB, free: 6.164 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=14): time 2.655e-06/0.8299, allocations: 0 / 1.18 GB, free: 6.164 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.0006645/0.8305, allocations: 300.7 kB / 1.181 GB, free: 5.844 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.8306, allocations: 55.41 kB / 1.181 GB, free: 5.777 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002812/0.8309, allocations: 270.5 kB / 1.181 GB, free: 5.512 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.209e-05/0.8309, allocations: 33.69 kB / 1.181 GB, free: 5.473 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.831, allocations: 199.9 kB / 1.181 GB, free: 5.273 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.506e-05/0.8311, allocations: 51.19 kB / 1.181 GB, free: 5.223 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.694e-05/0.8312, allocations: 49.94 kB / 1.181 GB, free: 5.164 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.8313, allocations: 338.8 kB / 1.181 GB, free: 4.824 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.8314, allocations: 60.38 kB / 1.182 GB, free: 4.766 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.8316, allocations: 148 kB / 1.182 GB, free: 4.582 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002646/0.8318, allocations: 218.2 kB / 1.182 GB, free: 4.332 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.8319, allocations: 0 / 1.182 GB, free: 4.332 MB / 0.9044 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004343/0.8323, allocations: 270.2 kB / 1.182 GB, free: 4.059 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.8323, allocations: 4 kB / 1.182 GB, free: 4.055 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.8323, allocations: 4 kB / 1.182 GB, free: 4.051 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001734/0.8325, allocations: 28.84 kB / 1.182 GB, free: 4.02 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.8327, allocations: 43.92 kB / 1.182 GB, free: 3.977 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001168/0.8339, allocations: 1.422 MB / 1.184 GB, free: 2.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.8341, allocations: 35.61 kB / 1.184 GB, free: 2.375 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.8341, allocations: 16 kB / 1.184 GB, free: 2.359 MB / 0.9044 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.0001777/0.8343, allocations: 169.8 kB / 1.184 GB, free: 2.184 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.34e-05/0.8344, allocations: 23.72 kB / 1.184 GB, free: 2.16 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.13e-05/0.8344, allocations: 21.84 kB / 1.184 GB, free: 2.133 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.8344, allocations: 4 kB / 1.184 GB, free: 2.129 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.8344, allocations: 3.984 kB / 1.184 GB, free: 2.125 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/0.8345, allocations: 4 kB / 1.184 GB, free: 2.121 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009713/0.8354, allocations: 0.7102 MB / 1.185 GB, free: 1.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.8355, allocations: 0 / 1.185 GB, free: 1.32 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.13e-05/0.8356, allocations: 27.92 kB / 1.185 GB, free: 1.293 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001035/0.8357, allocations: 32.97 kB / 1.185 GB, free: 1.258 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.8357, allocations: 0 / 1.185 GB, free: 1.258 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.8368, allocations: 1.406 MB / 1.186 GB, free: 15.71 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.8368, allocations: 4.031 kB / 1.186 GB, free: 15.71 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003752/0.8372, allocations: 321.1 kB / 1.186 GB, free: 15.36 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.8373, allocations: 108.8 kB / 1.186 GB, free: 15.23 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.244e-05/0.8373, allocations: 8 kB / 1.186 GB, free: 15.22 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.8375, allocations: 7.984 kB / 1.186 GB, free: 15.21 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.812e-05/0.8375, allocations: 23.92 kB / 1.186 GB, free: 15.19 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.8376, allocations: 4 kB / 1.186 GB, free: 15.19 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.000195/0.8378, allocations: 190 kB / 1.187 GB, free: 15 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.934e-06/0.8378, allocations: 0 / 1.187 GB, free: 15 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004338/0.8382, allocations: 87.62 kB / 1.187 GB, free: 14.92 MB / 0.92 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.0001189/0.8383, allocations: 103.7 kB / 1.187 GB, free: 14.8 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0005073/0.8389, allocations: 274.5 kB / 1.187 GB, free: 14.52 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.8389, allocations: 0 / 1.187 GB, free: 14.52 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.8391, allocations: 183.7 kB / 1.187 GB, free: 14.33 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004966/0.8396, allocations: 77.83 kB / 1.187 GB, free: 14.26 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009968/0.8406, allocations: 0.5765 MB / 1.188 GB, free: 13.64 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000423/0.841, allocations: 0.7909 MB / 1.189 GB, free: 12.82 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.8412, allocations: 23.44 kB / 1.189 GB, free: 12.8 MB / 0.92 GB Notification: Performance of SimCode: time 3.91e-07/0.8412, allocations: 0 / 1.189 GB, free: 12.8 MB / 0.92 GB Notification: Performance of Templates: time 0.007899/0.8491, allocations: 4.404 MB / 1.193 GB, free: 8.41 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches