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.001153/0.001154, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001291/0.001291, allocations: 192.1 kB / 16.14 MB, free: 6.711 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.396/1.396, allocations: 222.9 MB / 239.8 MB, free: 4.617 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.776/2.776, allocations: 437 MB / 0.7099 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 59.91 kB / 0.8685 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7446/0.7459, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004881/0.7508, allocations: 3.143 MB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001885/0.7527, allocations: 1.324 MB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.7529, allocations: 4 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0008965/0.7538, allocations: 318.9 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002888/0.7541, allocations: 139.4 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.7544, allocations: 123.7 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003793/0.7548, allocations: 430.8 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002752/0.755, allocations: 160.3 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.7552, allocations: 107.6 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.7554, allocations: 143.5 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.018e-05/0.7555, allocations: 12 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003245/0.7558, allocations: 207.6 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.331e-05/0.7559, allocations: 75.8 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.756, allocations: 107.5 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003915/0.7564, allocations: 344.8 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.7564, allocations: 3.938 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.102e-06/0.7564, allocations: 4 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.189e-06/0.7565, allocations: 0 / 1.023 GB, free: 12.15 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.0007554/0.7572, allocations: 0.5069 MB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.7573, allocations: 8.031 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005408/0.7578, allocations: 80.58 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.7581, allocations: 243.9 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.7581, allocations: 12.75 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.7581, allocations: 24.36 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004136/0.7586, allocations: 299.5 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.7586, allocations: 0 / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.797e-05/0.7586, allocations: 8 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.604e-05/0.7587, allocations: 20.36 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000292/0.759, allocations: 196.9 kB / 1.024 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.7603, allocations: 1.456 MB / 1.026 GB, free: 9.047 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.7606, allocations: 179.6 kB / 1.026 GB, free: 8.844 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.557e-05/0.7607, allocations: 36.84 kB / 1.026 GB, free: 8.805 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.018e-05/0.7607, allocations: 4 kB / 1.026 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.7607, allocations: 34.56 kB / 1.026 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.855e-06/0.7607, allocations: 3.938 kB / 1.026 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004503/0.7612, allocations: 227.3 kB / 1.026 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.7612, allocations: 51.41 kB / 1.026 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001742/0.7614, allocations: 196.5 kB / 1.027 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.7614, allocations: 29.7 kB / 1.027 GB, free: 8.207 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.166e-05/0.7615, allocations: 171.7 kB / 1.027 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.7615, allocations: 23.66 kB / 1.027 GB, free: 8.012 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-05/0.7616, allocations: 37.61 kB / 1.027 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.7617, allocations: 330.8 kB / 1.027 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.935e-05/0.7618, allocations: 31.98 kB / 1.027 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.7619, allocations: 106.8 kB / 1.027 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001695/0.762, allocations: 144.4 kB / 1.027 GB, free: 7.301 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.7621, allocations: 0 / 1.027 GB, free: 7.301 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002905/0.7624, allocations: 194.2 kB / 1.028 GB, free: 7.102 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.7624, allocations: 4 kB / 1.028 GB, free: 7.098 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.7624, allocations: 4 kB / 1.028 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001521/0.7625, allocations: 24.84 kB / 1.028 GB, free: 7.066 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.7627, allocations: 27.92 kB / 1.028 GB, free: 7.039 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009421/0.7636, allocations: 1.327 MB / 1.029 GB, free: 5.582 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.7637, allocations: 19.78 kB / 1.029 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.7638, allocations: 8 kB / 1.029 GB, free: 5.555 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.0001297/0.7639, allocations: 150.5 kB / 1.029 GB, free: 5.398 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.745e-05/0.7639, allocations: 23.69 kB / 1.029 GB, free: 5.375 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.405e-05/0.764, allocations: 17.41 kB / 1.029 GB, free: 5.359 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.764, allocations: 0 / 1.029 GB, free: 5.359 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.764, allocations: 96 / 1.029 GB, free: 5.359 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.764, allocations: 7.922 kB / 1.029 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005486/0.7645, allocations: 439.3 kB / 1.03 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.7646, allocations: 0 / 1.03 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.953e-05/0.7646, allocations: 15.92 kB / 1.03 GB, free: 4.848 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.691e-05/0.7647, allocations: 24.84 kB / 1.03 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.575e-06/0.7647, allocations: 0 / 1.03 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008962/0.7656, allocations: 1.311 MB / 1.031 GB, free: 3.367 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.7656, allocations: 3.938 kB / 1.031 GB, free: 3.363 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002167/0.7658, allocations: 204.3 kB / 1.031 GB, free: 3.145 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.5e-05/0.7659, allocations: 100.8 kB / 1.031 GB, free: 3.027 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.7659, allocations: 4.031 kB / 1.031 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.7661, allocations: 15.94 kB / 1.031 GB, free: 3.008 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.414e-05/0.7661, allocations: 3.984 kB / 1.031 GB, free: 3.004 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-06/0.7661, allocations: 4 kB / 1.031 GB, free: 3 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001122/0.7662, allocations: 143.4 kB / 1.031 GB, free: 2.859 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7662, allocations: 3.938 kB / 1.031 GB, free: 2.855 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003211/0.7666, allocations: 55.84 kB / 1.031 GB, free: 2.801 MB / 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.0001144/0.7667, allocations: 99.25 kB / 1.031 GB, free: 2.695 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004342/0.7671, allocations: 210.5 kB / 1.032 GB, free: 2.477 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.7671, allocations: 4 kB / 1.032 GB, free: 2.473 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.7673, allocations: 143.1 kB / 1.032 GB, free: 2.32 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.7677, allocations: 39.22 kB / 1.032 GB, free: 2.285 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006638/0.7684, allocations: 433.7 kB / 1.032 GB, free: 1.832 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.7688, allocations: 0.7517 MB / 1.033 GB, free: 1.055 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.89e-05/0.7689, allocations: 21.48 kB / 1.033 GB, free: 1.035 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.367e-05/0.7689, allocations: 15.44 kB / 1.033 GB, free: 1.02 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.7689, allocations: 4 kB / 1.033 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of Templates: time 0.004745/0.7737, allocations: 1.677 MB / 1.035 GB, free: 15.36 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=480 -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