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.001496/0.001496, allocations: 106.5 kB / 15.99 MB, free: 5.895 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.001729/0.001729, allocations: 195.3 kB / 16.91 MB, free: 5.746 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.393/1.393, allocations: 222.9 MB / 240.6 MB, free: 4.508 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.607/2.607, allocations: 437 MB / 0.7107 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002378/0.002379, allocations: 63.91 kB / 0.8694 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6135/0.6159, allocations: 151.6 MB / 1.017 GB, free: 2.879 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005264/0.6212, allocations: 3.883 MB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002534/0.6238, allocations: 1.706 MB / 1.023 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/0.624, allocations: 7.938 kB / 1.023 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001345/0.6254, allocations: 474.4 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.00047/0.6258, allocations: 211.1 kB / 1.024 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000488/0.6263, allocations: 191.6 kB / 1.024 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004701/0.6268, allocations: 474.4 kB / 1.024 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005943/0.6274, allocations: 415.2 kB / 1.025 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002138/0.6277, allocations: 191.3 kB / 1.025 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003462/0.628, allocations: 227.2 kB / 1.025 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.446e-05/0.6281, allocations: 28 kB / 1.025 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003702/0.6284, allocations: 239.4 kB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.6286, allocations: 131.7 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001626/0.6288, allocations: 167.2 kB / 1.026 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000426/0.6292, allocations: 399 kB / 1.026 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.6292, allocations: 4 kB / 1.026 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.533e-06/0.6292, allocations: 3.938 kB / 1.026 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.644e-06/0.6292, allocations: 4 kB / 1.026 GB, free: 10.16 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.000983/0.6302, allocations: 0.6199 MB / 1.027 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.6303, allocations: 8.031 kB / 1.027 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008947/0.6312, allocations: 140.3 kB / 1.027 GB, free: 9.348 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003396/0.6315, allocations: 296.2 kB / 1.027 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.6315, allocations: 20.97 kB / 1.027 GB, free: 9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.1e-05/0.6316, allocations: 28.38 kB / 1.027 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006328/0.6322, allocations: 475.8 kB / 1.027 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.6322, allocations: 0 / 1.027 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/0.6323, allocations: 15.94 kB / 1.027 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.146e-05/0.6323, allocations: 28.55 kB / 1.028 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004733/0.6328, allocations: 317.9 kB / 1.028 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.6348, allocations: 2.193 MB / 1.03 GB, free: 5.711 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003516/0.6352, allocations: 251.8 kB / 1.03 GB, free: 5.438 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002455/0.6355, allocations: 112.4 kB / 1.03 GB, free: 5.328 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.6355, allocations: 0 / 1.03 GB, free: 5.328 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.6355, allocations: 38.56 kB / 1.03 GB, free: 5.281 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.6355, allocations: 0 / 1.03 GB, free: 5.281 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0005781/0.6361, allocations: 303.5 kB / 1.031 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.571e-05/0.6362, allocations: 55.41 kB / 1.031 GB, free: 4.891 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.6364, allocations: 266.6 kB / 1.031 GB, free: 4.625 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.6365, allocations: 29.7 kB / 1.031 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.6366, allocations: 207.8 kB / 1.031 GB, free: 4.383 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.618e-05/0.6366, allocations: 51.28 kB / 1.031 GB, free: 4.332 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.425e-05/0.6367, allocations: 53.84 kB / 1.031 GB, free: 4.27 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.6368, allocations: 334.8 kB / 1.032 GB, free: 3.934 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.278e-05/0.6369, allocations: 60.42 kB / 1.032 GB, free: 3.875 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001397/0.6371, allocations: 141.2 kB / 1.032 GB, free: 3.699 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002394/0.6373, allocations: 213 kB / 1.032 GB, free: 3.453 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.6373, allocations: 0 / 1.032 GB, free: 3.453 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003983/0.6377, allocations: 265.9 kB / 1.032 GB, free: 3.184 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.6378, allocations: 8 kB / 1.032 GB, free: 3.176 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.6378, allocations: 4 kB / 1.032 GB, free: 3.172 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001652/0.638, allocations: 25.22 kB / 1.032 GB, free: 3.145 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.6382, allocations: 55.91 kB / 1.032 GB, free: 3.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.6392, allocations: 1.426 MB / 1.034 GB, free: 1.527 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.6394, allocations: 27.59 kB / 1.034 GB, free: 1.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.6394, allocations: 12 kB / 1.034 GB, free: 1.488 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.0001679/0.6396, allocations: 170.4 kB / 1.034 GB, free: 1.312 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.952e-05/0.6396, allocations: 19.81 kB / 1.034 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.221e-05/0.6397, allocations: 37.89 kB / 1.034 GB, free: 1.25 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.6397, allocations: 0 / 1.034 GB, free: 1.25 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.6397, allocations: 8.062 kB / 1.034 GB, free: 1.242 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.6397, allocations: 0 / 1.034 GB, free: 1.242 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009153/0.6406, allocations: 0.7102 MB / 1.035 GB, free: 452 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.6407, allocations: 0 / 1.035 GB, free: 452 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.712e-05/0.6407, allocations: 20 kB / 1.035 GB, free: 432 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.612e-05/0.6409, allocations: 32.72 kB / 1.035 GB, free: 396 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.6409, allocations: 3.984 kB / 1.035 GB, free: 392 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009477/0.6418, allocations: 1.418 MB / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.6418, allocations: 4.031 kB / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003303/0.6422, allocations: 318.8 kB / 1.036 GB, free: 14.47 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.6423, allocations: 112.8 kB / 1.037 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.258e-05/0.6423, allocations: 8 kB / 1.037 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.6425, allocations: 4 kB / 1.037 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.937e-05/0.6425, allocations: 19.92 kB / 1.037 GB, free: 14.31 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.6426, allocations: 4 kB / 1.037 GB, free: 14.31 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001715/0.6427, allocations: 194 kB / 1.037 GB, free: 14.12 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6427, allocations: 4 kB / 1.037 GB, free: 14.12 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004027/0.6432, allocations: 75.84 kB / 1.037 GB, free: 14.04 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.0001164/0.6433, allocations: 103.1 kB / 1.037 GB, free: 13.93 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004569/0.6437, allocations: 278.8 kB / 1.037 GB, free: 13.65 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.6438, allocations: 0 / 1.037 GB, free: 13.65 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002017/0.644, allocations: 182.5 kB / 1.037 GB, free: 13.46 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.6445, allocations: 60.45 kB / 1.037 GB, free: 13.4 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009528/0.6454, allocations: 0.7029 MB / 1.038 GB, free: 12.65 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.6458, allocations: 0.7909 MB / 1.039 GB, free: 11.83 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.728e-05/0.6458, allocations: 19.44 kB / 1.039 GB, free: 11.81 MB / 0.795 GB Notification: Performance of SimCode: time 1.793e-06/0.6459, allocations: 0 / 1.039 GB, free: 11.81 MB / 0.795 GB Notification: Performance of Templates: time 0.006114/0.652, allocations: 4.389 MB / 1.043 GB, free: 7.434 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/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