Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 106.8 kB / 16.35 MB, free: 5.824 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.001626/0.001627, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.334/1.334, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.456/2.456, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001385, allocations: 64.69 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3353, allocations: 153 MB / 1.027 GB, free: 2.035 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004958/0.3404, allocations: 3.088 MB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002055/0.3424, allocations: 1.328 MB / 1.031 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.3426, allocations: 4 kB / 1.031 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.3436, allocations: 330.7 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003206/0.344, allocations: 147.3 kB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000348/0.3443, allocations: 131.6 kB / 1.032 GB, free: 13 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003327/0.3447, allocations: 306.9 kB / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004221/0.3451, allocations: 236.3 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.3452, allocations: 127.5 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002807/0.3455, allocations: 139.5 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.879e-05/0.3456, allocations: 24 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002723/0.3459, allocations: 159.7 kB / 1.033 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.88e-05/0.346, allocations: 79.78 kB / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.3461, allocations: 111.5 kB / 1.033 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000403/0.3465, allocations: 338.9 kB / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.3465, allocations: 0 / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.843e-06/0.3465, allocations: 0 / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.3465, allocations: 0 / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008277/0.3474, allocations: 0.5197 MB / 1.034 GB, free: 10.94 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.3474, allocations: 12.03 kB / 1.034 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005702/0.348, allocations: 76.58 kB / 1.034 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/0.3483, allocations: 239.9 kB / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.3484, allocations: 16.75 kB / 1.034 GB, free: 10.56 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.3484, allocations: 16.38 kB / 1.034 GB, free: 10.55 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004389/0.3488, allocations: 307.5 kB / 1.034 GB, free: 10.22 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.3489, allocations: 0 / 1.034 GB, free: 10.22 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.3489, allocations: 12 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.261e-05/0.3489, allocations: 12.38 kB / 1.034 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002983/0.3492, allocations: 196.9 kB / 1.034 GB, free: 10.01 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.3507, allocations: 1.46 MB / 1.036 GB, free: 8.387 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.351, allocations: 183.6 kB / 1.036 GB, free: 8.18 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.075e-05/0.3511, allocations: 28.84 kB / 1.036 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.203e-05/0.3511, allocations: 4 kB / 1.036 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.3511, allocations: 34.56 kB / 1.036 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.3511, allocations: 0 / 1.036 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0005106/0.3517, allocations: 231.3 kB / 1.036 GB, free: 7.848 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.3517, allocations: 55.34 kB / 1.036 GB, free: 7.781 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.3519, allocations: 192.2 kB / 1.037 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.3519, allocations: 29.7 kB / 1.037 GB, free: 7.551 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.3521, allocations: 163.8 kB / 1.037 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.391e-05/0.3521, allocations: 35.62 kB / 1.037 GB, free: 7.352 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.379e-05/0.3522, allocations: 33.62 kB / 1.037 GB, free: 7.312 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.3523, allocations: 330.8 kB / 1.037 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.612e-05/0.3524, allocations: 40.05 kB / 1.037 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.817e-05/0.3525, allocations: 96.56 kB / 1.037 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.3526, allocations: 148.4 kB / 1.037 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3527, allocations: 4 kB / 1.037 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002969/0.353, allocations: 186.1 kB / 1.038 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.353, allocations: 8.281 kB / 1.038 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.353, allocations: 4 kB / 1.038 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001713/0.3532, allocations: 24.84 kB / 1.038 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.3533, allocations: 27.98 kB / 1.038 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/0.3544, allocations: 1.415 MB / 1.039 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.3546, allocations: 19.78 kB / 1.039 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.3546, allocations: 8 kB / 1.039 GB, free: 4.797 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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.3548, allocations: 161.8 kB / 1.039 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.342e-05/0.3548, allocations: 15.81 kB / 1.039 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.089e-05/0.3549, allocations: 17.41 kB / 1.039 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.3549, allocations: 0 / 1.039 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.3549, allocations: 0 / 1.039 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3549, allocations: 3.984 kB / 1.039 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005328/0.3554, allocations: 455.3 kB / 1.04 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3554, allocations: 3.938 kB / 1.04 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.875e-05/0.3555, allocations: 15.98 kB / 1.04 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.479e-05/0.3556, allocations: 20.84 kB / 1.04 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.383e-06/0.3556, allocations: 3.938 kB / 1.04 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.3566, allocations: 1.418 MB / 1.041 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3566, allocations: 0 / 1.041 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002153/0.3569, allocations: 208.1 kB / 1.041 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.459e-05/0.3569, allocations: 101.1 kB / 1.041 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.357, allocations: 0 / 1.041 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.3571, allocations: 11.98 kB / 1.041 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.691e-05/0.3571, allocations: 0 / 1.041 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.3571, allocations: 4 kB / 1.041 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001761/0.3573, allocations: 143.1 kB / 1.042 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3573, allocations: 0 / 1.042 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000323/0.3576, allocations: 59.75 kB / 1.042 GB, free: 1.93 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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.0001077/0.3577, allocations: 95.25 kB / 1.042 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003464/0.3581, allocations: 214.5 kB / 1.042 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3581, allocations: 0 / 1.042 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.3583, allocations: 147.2 kB / 1.042 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.3586, allocations: 35.97 kB / 1.042 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000612/0.3592, allocations: 362.2 kB / 1.042 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.3596, allocations: 0.7514 MB / 1.043 GB, free: 264 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 8.318e-05/0.3597, allocations: 21.53 kB / 1.043 GB, free: 240 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.059e-05/0.3597, allocations: 15.44 kB / 1.043 GB, free: 224 kB / 0.8106 GB Notification: Performance of SimCode: time 3.31e-07/0.3597, allocations: 0 / 1.043 GB, free: 224 kB / 0.8106 GB Notification: Performance of Templates: time 0.00452/0.3642, allocations: 1.754 MB / 1.045 GB, free: 14.49 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches