Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001718/0.001718, allocations: 106.2 kB / 16.41 MB, free: 6.438 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.002005/0.002005, allocations: 191.2 kB / 17.34 MB, free: 5.742 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.549/1.549, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.297/2.297, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 67.84 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8309/0.8324, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004638/0.837, allocations: 3.069 MB / 1.092 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002302/0.8394, allocations: 1.33 MB / 1.093 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001991/0.8396, allocations: 4.25 kB / 1.093 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001196/0.8408, allocations: 336.2 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004876/0.8413, allocations: 143.7 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004991/0.8418, allocations: 135.8 kB / 1.093 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005163/0.8424, allocations: 309.5 kB / 1.094 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005274/0.8429, allocations: 234 kB / 1.094 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002489/0.8432, allocations: 128.7 kB / 1.094 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003554/0.8435, allocations: 139.1 kB / 1.094 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.779e-05/0.8436, allocations: 18.53 kB / 1.094 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004609/0.8441, allocations: 169.2 kB / 1.094 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.8442, allocations: 78.67 kB / 1.095 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.8443, allocations: 109.5 kB / 1.095 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005937/0.8449, allocations: 335.3 kB / 1.095 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.8449, allocations: 1.688 kB / 1.095 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.874e-06/0.845, allocations: 0 / 1.095 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.845, allocations: 0 / 1.095 GB, free: 1.566 MB / 0.8575 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.000847/0.8458, allocations: 0.5258 MB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.8459, allocations: 9.75 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006709/0.8466, allocations: 79.92 kB / 1.096 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003151/0.8469, allocations: 237.9 kB / 1.096 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.8469, allocations: 16.09 kB / 1.096 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.548e-05/0.847, allocations: 24.86 kB / 1.096 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005654/0.8475, allocations: 294.6 kB / 1.096 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.8476, allocations: 1.359 kB / 1.096 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.193e-05/0.8476, allocations: 14.84 kB / 1.096 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.537e-05/0.8476, allocations: 19.53 kB / 1.096 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004173/0.8481, allocations: 193.8 kB / 1.096 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.8498, allocations: 1.461 MB / 1.098 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003536/0.8501, allocations: 176.2 kB / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.771e-05/0.8502, allocations: 36.27 kB / 1.098 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.8502, allocations: 4.5 kB / 1.098 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.8503, allocations: 37.59 kB / 1.098 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.804e-06/0.8503, allocations: 0 / 1.098 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of matching and sorting (n=7): time 0.0005689/0.8509, allocations: 226.8 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.8509, allocations: 53.17 kB / 1.098 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002644/0.8512, allocations: 189.4 kB / 1.098 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.8512, allocations: 30.83 kB / 1.098 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.8514, allocations: 170.3 kB / 1.099 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.86e-05/0.8514, allocations: 25.78 kB / 1.099 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.98e-05/0.8515, allocations: 35.14 kB / 1.099 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.8516, allocations: 331 kB / 1.099 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.648e-05/0.8517, allocations: 31.5 kB / 1.099 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001538/0.8519, allocations: 102 kB / 1.099 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.8521, allocations: 147.7 kB / 1.099 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.8521, allocations: 1.062 kB / 1.099 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003868/0.8525, allocations: 195.9 kB / 1.099 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.417e-05/0.8525, allocations: 6.094 kB / 1.099 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.8525, allocations: 2.75 kB / 1.099 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002008/0.8527, allocations: 26 kB / 1.099 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.8529, allocations: 28.91 kB / 1.1 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001238/0.8541, allocations: 1.419 MB / 1.101 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.8543, allocations: 22.56 kB / 1.101 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.8543, allocations: 10.61 kB / 1.101 GB, free: 12.34 MB / 0.8731 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.0001982/0.8545, allocations: 151.6 kB / 1.101 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.155e-05/0.8546, allocations: 14.66 kB / 1.101 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.697e-05/0.8546, allocations: 15.67 kB / 1.101 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.8547, allocations: 1.781 kB / 1.101 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.8547, allocations: 3.938 kB / 1.101 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-06/0.8547, allocations: 1.812 kB / 1.101 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006401/0.8553, allocations: 451.4 kB / 1.102 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.8553, allocations: 0.5156 kB / 1.102 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.928e-05/0.8554, allocations: 7.484 kB / 1.102 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-05/0.8555, allocations: 22.7 kB / 1.102 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.8555, allocations: 5.781 kB / 1.102 GB, free: 11.79 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001087/0.8566, allocations: 1.412 MB / 1.103 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.8566, allocations: 0 / 1.103 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/0.8569, allocations: 215.6 kB / 1.103 GB, free: 10.2 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 8.913e-05/0.857, allocations: 98.53 kB / 1.103 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.857, allocations: 1.641 kB / 1.103 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.8572, allocations: 3.234 kB / 1.103 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.109e-05/0.8572, allocations: 9.219 kB / 1.103 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.273e-06/0.8572, allocations: 2.25 kB / 1.103 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001638/0.8574, allocations: 147.6 kB / 1.103 GB, free: 9.992 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8574, allocations: 5.531 kB / 1.103 GB, free: 9.988 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003913/0.8578, allocations: 55.16 kB / 1.103 GB, free: 9.973 MB / 0.8731 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.000148/0.8579, allocations: 101.4 kB / 1.104 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004419/0.8584, allocations: 206.4 kB / 1.104 GB, free: 9.738 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.8584, allocations: 0.5625 kB / 1.104 GB, free: 9.738 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.8586, allocations: 152.2 kB / 1.104 GB, free: 9.609 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003926/0.859, allocations: 33.11 kB / 1.104 GB, free: 9.598 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007716/0.8598, allocations: 390.6 kB / 1.104 GB, free: 9.34 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003405/0.8601, allocations: 0.7589 MB / 1.105 GB, free: 8.625 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.414e-05/0.8602, allocations: 14.56 kB / 1.105 GB, free: 8.617 MB / 0.8731 GB Notification: Performance of SimCode: time 3.2e-07/0.8602, allocations: 0.625 kB / 1.105 GB, free: 8.617 MB / 0.8731 GB Notification: Performance of Templates: time 0.007305/0.8675, allocations: 2.985 MB / 1.108 GB, free: 8.375 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches