Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_10_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_10_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.001125/0.001125, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.009318/0.009318, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.552/1.552, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.908/2.908, allocations: 437.8 MB / 0.7121 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003491, allocations: 8 kB / 0.8728 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.811/0.8113, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004032/0.8154, allocations: 2.765 MB / 1.026 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002284/0.8177, allocations: 1.313 MB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.8178, allocations: 4 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.818, allocations: 35.7 kB / 1.027 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003823/0.8184, allocations: 135.4 kB / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003794/0.8188, allocations: 131.7 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005015/0.8193, allocations: 430.8 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003566/0.8197, allocations: 237.4 kB / 1.028 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.8198, allocations: 91.64 kB / 1.028 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003029/0.8201, allocations: 139.5 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.099e-05/0.8202, allocations: 8 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000353/0.8205, allocations: 207.5 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.8206, allocations: 75.8 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.8208, allocations: 125.2 kB / 1.029 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005031/0.8213, allocations: 332.8 kB / 1.029 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.8213, allocations: 0 / 1.029 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of FrontEnd: time 6.943e-06/0.8213, allocations: 4 kB / 1.029 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.8213, allocations: 3.938 kB / 1.029 GB, free: 9.789 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009706/0.8223, allocations: 483.2 kB / 1.029 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.8224, allocations: 8.031 kB / 1.029 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000676/0.8231, allocations: 92.58 kB / 1.029 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/0.8234, allocations: 239.9 kB / 1.03 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.482e-05/0.8235, allocations: 12.75 kB / 1.03 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.324e-05/0.8235, allocations: 16.38 kB / 1.03 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005611/0.8241, allocations: 303.5 kB / 1.03 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.8241, allocations: 4 kB / 1.03 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.8241, allocations: 8 kB / 1.03 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.999e-05/0.8242, allocations: 16.38 kB / 1.03 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003771/0.8246, allocations: 208.6 kB / 1.03 GB, free: 8.32 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.8264, allocations: 1.464 MB / 1.032 GB, free: 6.695 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.8267, allocations: 175.7 kB / 1.032 GB, free: 6.496 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.003e-05/0.8268, allocations: 28.84 kB / 1.032 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.121e-05/0.8268, allocations: 4 kB / 1.032 GB, free: 6.461 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.8268, allocations: 38.56 kB / 1.032 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.8269, allocations: 0 / 1.032 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005431/0.8274, allocations: 231.3 kB / 1.032 GB, free: 6.16 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.8275, allocations: 51.41 kB / 1.032 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002653/0.8277, allocations: 192.5 kB / 1.032 GB, free: 5.902 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.966e-05/0.8278, allocations: 29.7 kB / 1.032 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.8279, allocations: 167.6 kB / 1.033 GB, free: 5.699 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.497e-05/0.828, allocations: 35.72 kB / 1.033 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.746e-05/0.828, allocations: 17.72 kB / 1.033 GB, free: 5.641 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002178/0.8283, allocations: 330.8 kB / 1.033 GB, free: 5.309 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.805e-05/0.8283, allocations: 35.97 kB / 1.033 GB, free: 5.273 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.8285, allocations: 100.4 kB / 1.033 GB, free: 5.145 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.8287, allocations: 148.4 kB / 1.033 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.8287, allocations: 0 / 1.033 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003498/0.8291, allocations: 182.4 kB / 1.033 GB, free: 4.781 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.8291, allocations: 12.06 kB / 1.033 GB, free: 4.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.8291, allocations: 0 / 1.033 GB, free: 4.77 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001456/0.8293, allocations: 28.84 kB / 1.033 GB, free: 4.738 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.8294, allocations: 27.92 kB / 1.033 GB, free: 4.711 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001452/0.8309, allocations: 1.331 MB / 1.035 GB, free: 3.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.831, allocations: 15.78 kB / 1.035 GB, free: 3.234 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.831, allocations: 8.094 kB / 1.035 GB, free: 3.227 MB / 0.7794 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.0002237/0.8313, allocations: 149.8 kB / 1.035 GB, free: 3.07 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.326e-05/0.8313, allocations: 19.75 kB / 1.035 GB, free: 3.051 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.962e-05/0.8314, allocations: 21.39 kB / 1.035 GB, free: 3.031 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.8314, allocations: 4 kB / 1.035 GB, free: 3.027 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.8314, allocations: 0 / 1.035 GB, free: 3.027 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.8314, allocations: 0 / 1.035 GB, free: 3.027 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006962/0.8321, allocations: 451.1 kB / 1.035 GB, free: 2.527 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.8321, allocations: 0 / 1.035 GB, free: 2.527 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.725e-05/0.8321, allocations: 8.062 kB / 1.035 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.595e-05/0.8322, allocations: 28.84 kB / 1.035 GB, free: 2.488 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.8323, allocations: 0 / 1.035 GB, free: 2.488 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/0.8335, allocations: 1.308 MB / 1.037 GB, free: 1.039 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.8335, allocations: 3.938 kB / 1.037 GB, free: 1.035 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002575/0.8338, allocations: 208.2 kB / 1.037 GB, free: 0.8125 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.808e-05/0.8339, allocations: 100.8 kB / 1.037 GB, free: 0.6953 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.397e-05/0.8339, allocations: 11.94 kB / 1.037 GB, free: 0.6836 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.834, allocations: 8.094 kB / 1.037 GB, free: 0.6758 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.323e-05/0.8341, allocations: 3.984 kB / 1.037 GB, free: 0.6719 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-06/0.8341, allocations: 4 kB / 1.037 GB, free: 0.668 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000146/0.8342, allocations: 143.4 kB / 1.037 GB, free: 0.5273 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.486e-06/0.8342, allocations: 0 / 1.037 GB, free: 0.5273 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003615/0.8346, allocations: 59.78 kB / 1.037 GB, free: 480 kB / 0.7794 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.0001549/0.8347, allocations: 95.78 kB / 1.037 GB, free: 376 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004148/0.8352, allocations: 214.5 kB / 1.037 GB, free: 148 kB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.8352, allocations: 0 / 1.037 GB, free: 148 kB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002004/0.8354, allocations: 138.7 kB / 1.038 GB, free: 15.99 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.8358, allocations: 34.33 kB / 1.038 GB, free: 15.96 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008/0.8366, allocations: 447.3 kB / 1.038 GB, free: 15.5 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.8371, allocations: 0.7517 MB / 1.039 GB, free: 14.72 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001154/0.8372, allocations: 25.53 kB / 1.039 GB, free: 14.7 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.055e-05/0.8372, allocations: 11.62 kB / 1.039 GB, free: 14.69 MB / 0.795 GB Notification: Performance of SimCode: time 3.51e-07/0.8373, allocations: 4 kB / 1.039 GB, free: 14.68 MB / 0.795 GB Notification: Performance of Templates: time 0.005719/0.843, allocations: 1.666 MB / 1.04 GB, free: 13.04 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches