Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_10_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_10_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.001529/0.001528, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001547/0.001547, allocations: 189.8 kB / 16.25 MB, free: 6.637 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.477/1.477, allocations: 222.9 MB / 239.9 MB, free: 4.504 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.812/2.812, allocations: 437 MB / 0.71 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002066/0.002066, allocations: 67.89 kB / 0.8687 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8203/0.8224, allocations: 151.6 MB / 1.017 GB, free: 2.684 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02865/0.8511, allocations: 22.44 MB / 1.039 GB, free: 12.17 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.03168/0.8829, allocations: 17.44 MB / 1.056 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004595/0.8875, allocations: 103.4 kB / 1.056 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.01105/0.8986, allocations: 3.935 MB / 1.06 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.01274/0.9114, allocations: 3.188 MB / 1.063 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.004022/0.9154, allocations: 1.186 MB / 1.064 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.009869/0.9253, allocations: 5.8 MB / 1.07 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008973/0.9343, allocations: 4.015 MB / 1.074 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005955/0.9403, allocations: 2.46 MB / 1.076 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006171/0.9465, allocations: 2.518 MB / 1.078 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.001974/0.9485, allocations: 372 kB / 1.079 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004605/0.9532, allocations: 1.034 MB / 1.08 GB, free: 1.957 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.002545/0.9557, allocations: 1.196 MB / 1.081 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.005381/0.9611, allocations: 1.994 MB / 1.083 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.009131/0.9703, allocations: 5.175 MB / 1.088 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.854e-06/0.9703, allocations: 0 / 1.088 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.214e-06/0.9704, allocations: 0 / 1.088 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0002388/0.9706, allocations: 0 / 1.088 GB, free: 9.562 MB / 0.8419 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.01296/0.9836, allocations: 4.606 MB / 1.092 GB, free: 4.844 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.9836, allocations: 12.03 kB / 1.092 GB, free: 4.832 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01617/0.9998, allocations: 3.269 MB / 1.096 GB, free: 1.555 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006135/1.006, allocations: 2.088 MB / 1.098 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005847/1.007, allocations: 466.2 kB / 1.098 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001237/1.008, allocations: 243.8 kB / 1.098 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01465/1.023, allocations: 4.806 MB / 1.103 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.241e-05/1.023, allocations: 3.938 kB / 1.103 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008338/1.024, allocations: 104 kB / 1.103 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002283/1.024, allocations: 172.8 kB / 1.103 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01416/1.038, allocations: 5.195 MB / 1.108 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02714/1.065, allocations: 14.47 MB / 1.123 GB, free: 4.559 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01044/1.076, allocations: 3.392 MB / 1.126 GB, free: 1.152 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003828/1.079, allocations: 1.467 MB / 1.127 GB, free: 15.68 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001998/1.08, allocations: 25.22 kB / 1.127 GB, free: 15.66 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00471/1.084, allocations: 1.792 MB / 1.129 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=163): time 5.671e-06/1.084, allocations: 0 / 1.129 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of matching and sorting (n=250): time 0.1252/1.21, allocations: 28.24 MB / 1.157 GB, free: 1.336 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000315/1.21, allocations: 0.4889 MB / 1.157 GB, free: 0.7344 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00446/1.215, allocations: 2.296 MB / 1.159 GB, free: 14.43 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0005178/1.215, allocations: 81.69 kB / 1.159 GB, free: 14.34 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001403/1.216, allocations: 1.434 MB / 1.161 GB, free: 12.89 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.001231/1.218, allocations: 0.8163 MB / 1.162 GB, free: 12.06 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001476/1.219, allocations: 412.5 kB / 1.162 GB, free: 11.65 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001166/1.219, allocations: 301.1 kB / 1.162 GB, free: 11.36 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005596/1.225, allocations: 1.933 MB / 1.164 GB, free: 9.418 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005675/1.231, allocations: 2.227 MB / 1.166 GB, free: 7.105 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01068/1.241, allocations: 4.165 MB / 1.17 GB, free: 2.805 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-05/1.241, allocations: 8 kB / 1.17 GB, free: 2.797 MB / 0.92 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01956/1.261, allocations: 6.536 MB / 1.177 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001546/1.261, allocations: 148.5 kB / 1.177 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.228e-05/1.261, allocations: 4 kB / 1.177 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01043/1.272, allocations: 2.949 MB / 1.18 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002934/1.275, allocations: 483.2 kB / 1.18 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04297/1.318, allocations: 18.86 MB / 1.199 GB, free: 5.449 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004589/1.322, allocations: 327.5 kB / 1.199 GB, free: 5.129 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006143/1.323, allocations: 91.97 kB / 1.199 GB, free: 5.039 MB / 0.9512 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.002488/1.325, allocations: 0.7104 MB / 1.2 GB, free: 4.316 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001257/1.327, allocations: 332.1 kB / 1.2 GB, free: 3.988 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001098/1.328, allocations: 380.1 kB / 1.2 GB, free: 3.609 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.332e-05/1.328, allocations: 24 kB / 1.2 GB, free: 3.586 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-05/1.328, allocations: 16 kB / 1.201 GB, free: 3.57 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.913e-05/1.328, allocations: 11.95 kB / 1.201 GB, free: 3.559 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006428/1.334, allocations: 3.624 MB / 1.204 GB, free: 15.88 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.63e-05/1.334, allocations: 4 kB / 1.204 GB, free: 15.88 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002597/1.337, allocations: 419.3 kB / 1.204 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01042/1.347, allocations: 2.888 MB / 1.207 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005719/1.348, allocations: 47.97 kB / 1.207 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04226/1.39, allocations: 18.63 MB / 1.226 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/1.39, allocations: 0 / 1.226 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02/1.41, allocations: 6.173 MB / 1.232 GB, free: 3.387 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001844/1.412, allocations: 0.7039 MB / 1.232 GB, free: 2.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009067/1.413, allocations: 47.94 kB / 1.232 GB, free: 2.613 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003526/1.417, allocations: 315.6 kB / 1.233 GB, free: 2.305 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001341/1.418, allocations: 358.7 kB / 1.233 GB, free: 1.957 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002846/1.418, allocations: 67.97 kB / 1.233 GB, free: 1.891 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002712/1.421, allocations: 1.532 MB / 1.234 GB, free: 368 kB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/1.421, allocations: 0 / 1.234 GB, free: 368 kB / 0.9825 GB Notification: Performance of remove unused functions: time 0.003501/1.425, allocations: 1.043 MB / 1.236 GB, free: 15.31 MB / 0.9981 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.0004534/1.425, allocations: 171 kB / 1.236 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02649/1.452, allocations: 7.297 MB / 1.243 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/1.452, allocations: 4 kB / 1.243 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.02228/1.474, allocations: 4.061 MB / 1.247 GB, free: 3.652 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0078/1.482, allocations: 1.137 MB / 1.248 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5406/2.022, allocations: 8.038 MB / 1.256 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002943/2.025, allocations: 2.227 MB / 1.258 GB, free: 210.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003272/2.029, allocations: 0.5107 MB / 1.258 GB, free: 210.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008447/2.029, allocations: 187.3 kB / 1.259 GB, free: 210.3 MB / 0.9981 GB Notification: Performance of SimCode: time 9.52e-07/2.03, allocations: 1.75 kB / 1.259 GB, free: 210.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.1088/2.138, allocations: 76.28 MB / 1.333 GB, free: 160.8 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches