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.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.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.001777/0.001777, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00255/0.00255, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.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.546/2.546, allocations: 390.2 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001477, allocations: 71.89 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8345/0.836, allocations: 140.3 MB / 0.9496 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02421/0.8602, allocations: 22.63 MB / 0.9717 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02912/0.8894, allocations: 17.62 MB / 0.9889 GB, free: 9.496 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003784/0.8932, allocations: 115.4 kB / 0.989 GB, free: 9.383 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.01092/0.9042, allocations: 4.183 MB / 0.9931 GB, free: 5.191 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01416/0.9183, allocations: 3.509 MB / 0.9965 GB, free: 1.676 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004997/0.9234, allocations: 1.318 MB / 0.9978 GB, free: 368 kB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.01009/0.9335, allocations: 5.765 MB / 1.003 GB, free: 10.58 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008098/0.9416, allocations: 3.608 MB / 1.007 GB, free: 6.898 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007268/0.9489, allocations: 2.406 MB / 1.009 GB, free: 4.484 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007752/0.9567, allocations: 2.44 MB / 1.012 GB, free: 2.035 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.002063/0.9588, allocations: 368 kB / 1.012 GB, free: 1.676 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005086/0.964, allocations: 1.041 MB / 1.013 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.003029/0.967, allocations: 1.192 MB / 1.014 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.006188/0.9732, allocations: 2.002 MB / 1.016 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.01249/0.9858, allocations: 5.116 MB / 1.021 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.101e-05/0.9858, allocations: 0 / 1.021 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.895e-06/0.9859, allocations: 0 / 1.021 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001854/0.986, allocations: 0 / 1.021 GB, free: 8.293 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: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.01933/1.005, allocations: 4.616 MB / 1.026 GB, free: 3.562 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/1.005, allocations: 12.03 kB / 1.026 GB, free: 3.551 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01765/1.023, allocations: 3.261 MB / 1.029 GB, free: 288 kB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006272/1.029, allocations: 2.088 MB / 1.031 GB, free: 14.12 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005559/1.03, allocations: 466.3 kB / 1.031 GB, free: 13.61 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001309/1.031, allocations: 235.9 kB / 1.032 GB, free: 13.38 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01181/1.043, allocations: 4.81 MB / 1.036 GB, free: 8.418 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.428e-05/1.043, allocations: 0 / 1.036 GB, free: 8.418 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003471/1.044, allocations: 112 kB / 1.036 GB, free: 8.309 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001956/1.044, allocations: 168.8 kB / 1.037 GB, free: 8.141 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01405/1.058, allocations: 5.194 MB / 1.042 GB, free: 2.93 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02564/1.084, allocations: 14.48 MB / 1.056 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01061/1.094, allocations: 3.393 MB / 1.059 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004041/1.098, allocations: 1.475 MB / 1.061 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001941/1.099, allocations: 25.28 kB / 1.061 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004696/1.103, allocations: 1.788 MB / 1.062 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=163): time 4.238e-06/1.103, allocations: 0 / 1.062 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of matching and sorting (n=250): time 0.1876/1.291, allocations: 28.22 MB / 1.09 GB, free: 76 kB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003459/1.291, allocations: 0.4889 MB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004702/1.296, allocations: 2.3 MB / 1.093 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0007015/1.297, allocations: 81.69 kB / 1.093 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001583/1.298, allocations: 1.43 MB / 1.094 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.001146/1.299, allocations: 0.8201 MB / 1.095 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001274/1.301, allocations: 416.5 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000117/1.301, allocations: 301.1 kB / 1.096 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006023/1.307, allocations: 1.933 MB / 1.097 GB, free: 8.148 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006382/1.313, allocations: 2.227 MB / 1.1 GB, free: 5.836 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01172/1.325, allocations: 4.169 MB / 1.104 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/1.325, allocations: 0 / 1.104 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02022/1.345, allocations: 6.528 MB / 1.11 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.000136/1.346, allocations: 148.5 kB / 1.11 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.145e-05/1.346, allocations: 4 kB / 1.11 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01087/1.357, allocations: 2.957 MB / 1.113 GB, free: 7.762 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00305/1.36, allocations: 483.2 kB / 1.114 GB, free: 7.289 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04359/1.403, allocations: 18.87 MB / 1.132 GB, free: 4.18 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004734/1.408, allocations: 319.6 kB / 1.132 GB, free: 3.867 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007449/1.409, allocations: 87.97 kB / 1.132 GB, free: 3.781 MB / 0.8887 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.002245/1.411, allocations: 0.7115 MB / 1.133 GB, free: 3.062 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001095/1.412, allocations: 336.1 kB / 1.133 GB, free: 2.73 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/1.413, allocations: 384.1 kB / 1.134 GB, free: 2.348 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.447e-05/1.413, allocations: 24 kB / 1.134 GB, free: 2.324 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.035e-05/1.413, allocations: 8 kB / 1.134 GB, free: 2.316 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.011e-05/1.413, allocations: 11.95 kB / 1.134 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006876/1.42, allocations: 3.632 MB / 1.137 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.402e-05/1.42, allocations: 0 / 1.137 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002672/1.423, allocations: 415.3 kB / 1.138 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0105/1.434, allocations: 2.888 MB / 1.141 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008845/1.435, allocations: 51.97 kB / 1.141 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04379/1.478, allocations: 18.63 MB / 1.159 GB, free: 8.328 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/1.478, allocations: 4.156 kB / 1.159 GB, free: 8.324 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01953/1.498, allocations: 6.169 MB / 1.165 GB, free: 2.117 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002285/1.5, allocations: 0.6962 MB / 1.165 GB, free: 1.398 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/1.501, allocations: 59.86 kB / 1.166 GB, free: 1.34 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003724/1.505, allocations: 307.6 kB / 1.166 GB, free: 1.039 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001387/1.507, allocations: 350.7 kB / 1.166 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002991/1.507, allocations: 71.97 kB / 1.166 GB, free: 0.6289 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.003097/1.51, allocations: 1.532 MB / 1.168 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.953e-06/1.51, allocations: 0 / 1.168 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.003957/1.514, allocations: 1.047 MB / 1.169 GB, free: 14.05 MB / 0.9356 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.0005655/1.515, allocations: 176.1 kB / 1.169 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.02731/1.542, allocations: 7.301 MB / 1.176 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.662e-05/1.542, allocations: 4.562 kB / 1.176 GB, free: 6.473 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.01886/1.561, allocations: 4.064 MB / 1.18 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008361/1.569, allocations: 1.126 MB / 1.181 GB, free: 1.297 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0196/1.589, allocations: 6.775 MB / 1.188 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002952/1.592, allocations: 2.227 MB / 1.19 GB, free: 8.238 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.003103/1.595, allocations: 0.5137 MB / 1.19 GB, free: 7.719 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009237/1.596, allocations: 187.4 kB / 1.191 GB, free: 7.535 MB / 0.9512 GB Notification: Performance of SimCode: time 9.41e-07/1.596, allocations: 3.938 kB / 1.191 GB, free: 7.531 MB / 0.9512 GB Notification: Performance of Templates: time 0.791/2.387, allocations: 77.58 MB / 1.266 GB, free: 251.7 MB / 0.9981 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 -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/jenkins/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