Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 107 kB / 16.36 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.001799/0.001799, allocations: 189.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.409/1.409, 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 9.1.2-maint.9.1.x/package.mo): time 2.285/2.285, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 61.28 kB / 0.814 GB, free: 32.74 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.295, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02519/0.3202, allocations: 22.65 MB / 0.9732 GB, free: 1.336 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02544/0.3457, allocations: 17.63 MB / 0.9904 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003438/0.3492, allocations: 115.4 kB / 0.9905 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.01067/0.3599, allocations: 4.169 MB / 0.9946 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.01019/0.3701, allocations: 3.51 MB / 0.998 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003688/0.3738, allocations: 1.318 MB / 0.9993 GB, free: 6.527 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.008662/0.3825, allocations: 5.777 MB / 1.005 GB, free: 0.7305 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005144/0.3877, allocations: 3.588 MB / 1.008 GB, free: 13.07 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004656/0.3923, allocations: 2.414 MB / 1.011 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005926/0.3983, allocations: 2.44 MB / 1.013 GB, free: 8.195 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.002494/0.4009, allocations: 371.9 kB / 1.014 GB, free: 7.832 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005344/0.4062, allocations: 1.034 MB / 1.015 GB, free: 6.797 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.002368/0.4086, allocations: 1.196 MB / 1.016 GB, free: 5.598 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.004756/0.4134, allocations: 2.002 MB / 1.018 GB, free: 3.586 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.007919/0.4214, allocations: 5.182 MB / 1.023 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.4214, allocations: 0 / 1.023 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.515e-06/0.4214, allocations: 0 / 1.023 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0001682/0.4216, allocations: 0 / 1.023 GB, free: 14.39 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: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.01139/0.433, allocations: 4.605 MB / 1.027 GB, free: 9.668 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.433, allocations: 12.03 kB / 1.027 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01571/0.4487, allocations: 3.257 MB / 1.03 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006116/0.4549, allocations: 2.244 MB / 1.033 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004229/0.4554, allocations: 466.3 kB / 1.033 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007128/0.4561, allocations: 235.9 kB / 1.033 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01116/0.4672, allocations: 4.814 MB / 1.038 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.614e-05/0.4673, allocations: 3.938 kB / 1.038 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003627/0.4677, allocations: 104 kB / 1.038 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002082/0.4679, allocations: 176.8 kB / 1.038 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01437/0.4823, allocations: 5.187 MB / 1.043 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02591/0.5082, allocations: 14.39 MB / 1.057 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009646/0.5179, allocations: 3.392 MB / 1.061 GB, free: 5.914 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003592/0.5216, allocations: 1.471 MB / 1.062 GB, free: 4.441 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001468/0.5217, allocations: 21.3 kB / 1.062 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00411/0.5258, allocations: 1.794 MB / 1.064 GB, free: 2.566 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=163): time 3.847e-06/0.5259, allocations: 0 / 1.064 GB, free: 2.566 MB / 0.8419 GB Notification: Performance of matching and sorting (n=250): time 0.7334/1.259, allocations: 28.21 MB / 1.091 GB, free: 123.4 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002221/1.26, allocations: 0.4938 MB / 1.092 GB, free: 122.9 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004925/1.264, allocations: 2.3 MB / 1.094 GB, free: 122 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0006682/1.265, allocations: 77.44 kB / 1.094 GB, free: 121.9 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001545/1.267, allocations: 1.432 MB / 1.096 GB, free: 120.8 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.001178/1.268, allocations: 0.8229 MB / 1.096 GB, free: 120.2 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001035/1.269, allocations: 415.7 kB / 1.097 GB, free: 120 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.728e-05/1.269, allocations: 302.9 kB / 1.097 GB, free: 119.7 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005519/1.275, allocations: 1.93 MB / 1.099 GB, free: 119.1 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005862/1.28, allocations: 2.233 MB / 1.101 GB, free: 118.3 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/1.291, allocations: 4.16 MB / 1.105 GB, free: 116.6 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-05/1.291, allocations: 1.125 kB / 1.105 GB, free: 116.6 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.0199/1.311, allocations: 6.538 MB / 1.112 GB, free: 114.3 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001028/1.311, allocations: 148.8 kB / 1.112 GB, free: 114.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.224e-05/1.311, allocations: 5.188 kB / 1.112 GB, free: 114.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00981/1.321, allocations: 2.927 MB / 1.115 GB, free: 113.6 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002906/1.324, allocations: 489.6 kB / 1.115 GB, free: 113.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04769/1.372, allocations: 18.85 MB / 1.134 GB, free: 102.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006787/1.379, allocations: 317.5 kB / 1.134 GB, free: 102.5 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007739/1.38, allocations: 90.91 kB / 1.134 GB, free: 102.5 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.002461/1.382, allocations: 0.7034 MB / 1.135 GB, free: 102 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001299/1.383, allocations: 338.7 kB / 1.135 GB, free: 101.9 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009873/1.384, allocations: 379.1 kB / 1.135 GB, free: 101.6 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/1.384, allocations: 23.56 kB / 1.135 GB, free: 101.6 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.893e-05/1.385, allocations: 11.81 kB / 1.135 GB, free: 101.6 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-05/1.385, allocations: 11.95 kB / 1.135 GB, free: 101.6 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005902/1.39, allocations: 3.625 MB / 1.139 GB, free: 99.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.683e-05/1.391, allocations: 3.938 kB / 1.139 GB, free: 99.17 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003282/1.394, allocations: 411.4 kB / 1.139 GB, free: 99.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01243/1.406, allocations: 2.873 MB / 1.142 GB, free: 97.71 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006945/1.407, allocations: 55.22 kB / 1.142 GB, free: 97.67 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03719/1.444, allocations: 18.61 MB / 1.16 GB, free: 80.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.351e-06/1.444, allocations: 4.031 kB / 1.16 GB, free: 80.95 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01642/1.461, allocations: 6.182 MB / 1.166 GB, free: 74.73 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002432/1.463, allocations: 0.6961 MB / 1.167 GB, free: 74.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009024/1.464, allocations: 49.69 kB / 1.167 GB, free: 73.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003413/1.468, allocations: 311.6 kB / 1.167 GB, free: 73.66 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001217/1.469, allocations: 358.7 kB / 1.168 GB, free: 73.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000257/1.469, allocations: 67.97 kB / 1.168 GB, free: 73.25 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.002107/1.471, allocations: 1.532 MB / 1.169 GB, free: 71.72 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/1.471, allocations: 0 / 1.169 GB, free: 71.72 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.003673/1.475, allocations: 1.043 MB / 1.17 GB, free: 70.68 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004436/1.475, allocations: 177.6 kB / 1.17 GB, free: 70.5 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.02884/1.504, allocations: 6.466 MB / 1.177 GB, free: 63.94 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.366e-05/1.504, allocations: 4 kB / 1.177 GB, free: 63.93 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.02237/1.527, allocations: 4.049 MB / 1.181 GB, free: 59.86 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008429/1.535, allocations: 1.15 MB / 1.182 GB, free: 58.79 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02056/1.556, allocations: 6.686 MB / 1.188 GB, free: 52.09 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002534/1.558, allocations: 2.235 MB / 1.191 GB, free: 49.82 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.003653/1.562, allocations: 0.5141 MB / 1.191 GB, free: 49.33 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001103/1.563, allocations: 183.4 kB / 1.191 GB, free: 49.15 MB / 0.8575 GB Notification: Performance of SimCode: time 1.724e-06/1.563, allocations: 0 / 1.191 GB, free: 49.15 MB / 0.8575 GB Notification: Performance of Templates: time 0.1205/1.684, allocations: 74.86 MB / 1.264 GB, free: 7.281 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches