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.001665/0.001665, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002191/0.002191, allocations: 190.8 kB / 16.25 MB, free: 6.633 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.524/1.524, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.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.664/2.664, allocations: 437 MB / 0.71 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001898, allocations: 67.89 kB / 0.8687 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8249/0.8268, allocations: 151.6 MB / 1.017 GB, free: 2.738 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006042/0.8329, allocations: 3.887 MB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002995/0.836, allocations: 1.714 MB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002168/0.8362, allocations: 4 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001408/0.8377, allocations: 471.5 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006152/0.8383, allocations: 215.1 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005671/0.8389, allocations: 188.6 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004942/0.8394, allocations: 482.3 kB / 1.024 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006277/0.84, allocations: 399.1 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.8402, allocations: 191.4 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000389/0.8406, allocations: 227.2 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.965e-05/0.8407, allocations: 28 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004119/0.8411, allocations: 243.4 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.8413, allocations: 123.7 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001624/0.8414, allocations: 179.1 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006228/0.8421, allocations: 0.5101 MB / 1.025 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.8421, allocations: 0 / 1.025 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.815e-06/0.8421, allocations: 0 / 1.025 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.312e-05/0.8421, allocations: 0 / 1.025 GB, free: 9.906 MB / 0.7794 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.001119/0.8432, allocations: 0.6393 MB / 1.026 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.8433, allocations: 12.03 kB / 1.026 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008905/0.8442, allocations: 136.3 kB / 1.026 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.8446, allocations: 288.2 kB / 1.026 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.8446, allocations: 33 kB / 1.026 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/0.8446, allocations: 28.38 kB / 1.026 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006594/0.8453, allocations: 463.9 kB / 1.027 GB, free: 8.203 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.8453, allocations: 4 kB / 1.027 GB, free: 8.199 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/0.8454, allocations: 12 kB / 1.027 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.743e-05/0.8454, allocations: 32.55 kB / 1.027 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004622/0.8459, allocations: 321.9 kB / 1.027 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002289/0.8482, allocations: 2.189 MB / 1.029 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003807/0.8486, allocations: 255.7 kB / 1.03 GB, free: 5.164 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002495/0.8488, allocations: 112.8 kB / 1.03 GB, free: 5.051 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.8489, allocations: 0 / 1.03 GB, free: 5.051 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.8489, allocations: 30.56 kB / 1.03 GB, free: 5.012 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.8489, allocations: 0 / 1.03 GB, free: 5.012 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0007168/0.8496, allocations: 306.4 kB / 1.03 GB, free: 4.688 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.8497, allocations: 59.34 kB / 1.03 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002829/0.85, allocations: 266.5 kB / 1.03 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.85, allocations: 29.7 kB / 1.03 GB, free: 4.316 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.8501, allocations: 203.8 kB / 1.031 GB, free: 4.113 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.012e-05/0.8502, allocations: 51.3 kB / 1.031 GB, free: 4.062 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.654e-05/0.8503, allocations: 45.86 kB / 1.031 GB, free: 4.008 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.8504, allocations: 342.8 kB / 1.031 GB, free: 3.664 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.8506, allocations: 52.44 kB / 1.031 GB, free: 3.613 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.8507, allocations: 141.2 kB / 1.031 GB, free: 3.438 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002926/0.851, allocations: 221 kB / 1.031 GB, free: 3.184 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.851, allocations: 7.938 kB / 1.031 GB, free: 3.176 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004722/0.8515, allocations: 266 kB / 1.032 GB, free: 2.906 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.8515, allocations: 8 kB / 1.032 GB, free: 2.898 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.8516, allocations: 0 / 1.032 GB, free: 2.898 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001818/0.8517, allocations: 28.83 kB / 1.032 GB, free: 2.867 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.8519, allocations: 47.92 kB / 1.032 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/0.8531, allocations: 1.43 MB / 1.033 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.8533, allocations: 31.59 kB / 1.033 GB, free: 1.223 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.8533, allocations: 8 kB / 1.033 GB, free: 1.215 MB / 0.7794 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.0001836/0.8535, allocations: 170.4 kB / 1.033 GB, free: 1.039 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-05/0.8536, allocations: 19.81 kB / 1.033 GB, free: 1.02 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.562e-05/0.8536, allocations: 29.83 kB / 1.033 GB, free: 0.9844 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.8536, allocations: 0 / 1.033 GB, free: 0.9844 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.8536, allocations: 8.125 kB / 1.033 GB, free: 0.9766 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.8537, allocations: 0 / 1.033 GB, free: 0.9766 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009565/0.8546, allocations: 0.7065 MB / 1.034 GB, free: 184 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.8546, allocations: 8.078 kB / 1.034 GB, free: 176 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.156e-05/0.8547, allocations: 19.94 kB / 1.034 GB, free: 156 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-05/0.8548, allocations: 28.78 kB / 1.034 GB, free: 124 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.8548, allocations: 8 kB / 1.034 GB, free: 116 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.8559, allocations: 1.418 MB / 1.036 GB, free: 14.55 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.8559, allocations: 0 / 1.036 GB, free: 14.55 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000348/0.8562, allocations: 319 kB / 1.036 GB, free: 14.21 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.8563, allocations: 120.8 kB / 1.036 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.011e-05/0.8564, allocations: 3.984 kB / 1.036 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.8566, allocations: 12 kB / 1.036 GB, free: 14.05 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.099e-05/0.8566, allocations: 15.92 kB / 1.036 GB, free: 14.04 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.8566, allocations: 8 kB / 1.036 GB, free: 14.03 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001807/0.8568, allocations: 190 kB / 1.036 GB, free: 13.85 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8568, allocations: 4 kB / 1.036 GB, free: 13.84 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003985/0.8572, allocations: 71.84 kB / 1.036 GB, free: 13.77 MB / 0.795 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.0001285/0.8573, allocations: 111.1 kB / 1.036 GB, free: 13.66 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004943/0.8578, allocations: 266.9 kB / 1.037 GB, free: 13.38 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.8579, allocations: 8.25 kB / 1.037 GB, free: 13.38 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002117/0.8581, allocations: 182.5 kB / 1.037 GB, free: 13.18 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005089/0.8586, allocations: 67.33 kB / 1.037 GB, free: 13.12 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000966/0.8596, allocations: 0.6572 MB / 1.038 GB, free: 12.42 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/0.86, allocations: 0.7948 MB / 1.038 GB, free: 11.6 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.00015/0.8601, allocations: 42.27 kB / 1.038 GB, free: 11.56 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.615e-05/0.8602, allocations: 19.62 kB / 1.038 GB, free: 11.54 MB / 0.795 GB Notification: Performance of SimCode: time 2.6e-07/0.8602, allocations: 0 / 1.038 GB, free: 11.54 MB / 0.795 GB Notification: Performance of Templates: time 0.006373/0.8666, allocations: 2.689 MB / 1.041 GB, free: 8.879 MB / 0.795 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/jenkins/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