Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.0009737/0.0009738, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006865/0.006865, allocations: 170 kB / 16.26 MB, free: 6.613 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.407/1.407, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.757/2.757, allocations: 462.7 MB / 0.7364 GB, free: 224 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003372, allocations: 7.281 kB / 0.9028 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3228, allocations: 159.6 MB / 1.059 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02372/0.3465, allocations: 21.71 MB / 1.08 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02601/0.3726, allocations: 17.37 MB / 1.097 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003976/0.3766, allocations: 103.4 kB / 1.097 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002872/0.3795, allocations: 0.5814 MB / 1.097 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0128/0.3924, allocations: 3.21 MB / 1.101 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003952/0.3963, allocations: 1.183 MB / 1.102 GB, free: 9.148 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01008/0.4064, allocations: 7.057 MB / 1.109 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004457/0.4109, allocations: 2.558 MB / 1.111 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004689/0.4157, allocations: 2.038 MB / 1.113 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004347/0.42, allocations: 2.288 MB / 1.115 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0006679/0.4207, allocations: 176 kB / 1.116 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002576/0.4233, allocations: 1.057 MB / 1.117 GB, free: 9.848 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001108/0.4244, allocations: 0.9729 MB / 1.118 GB, free: 8.871 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.002861/0.4273, allocations: 1.777 MB / 1.119 GB, free: 7.078 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.006082/0.4334, allocations: 4.935 MB / 1.124 GB, free: 2.125 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4334, allocations: 4 kB / 1.124 GB, free: 2.121 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.204e-06/0.4335, allocations: 0 / 1.124 GB, free: 2.121 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001422/0.4336, allocations: 4 kB / 1.124 GB, free: 2.117 MB / 0.8731 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.01098/0.4446, allocations: 4.06 MB / 1.128 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/0.4447, allocations: 8.031 kB / 1.128 GB, free: 13.94 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01745/0.4621, allocations: 3.371 MB / 1.131 GB, free: 10.56 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004623/0.4668, allocations: 2.08 MB / 1.133 GB, free: 8.41 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004438/0.4673, allocations: 482.2 kB / 1.134 GB, free: 7.879 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007228/0.468, allocations: 231.9 kB / 1.134 GB, free: 7.652 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/0.4803, allocations: 4.865 MB / 1.139 GB, free: 2.641 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.746e-05/0.4804, allocations: 3.938 kB / 1.139 GB, free: 2.637 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003725/0.4808, allocations: 112 kB / 1.139 GB, free: 2.527 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002111/0.481, allocations: 172.8 kB / 1.139 GB, free: 2.355 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01561/0.4966, allocations: 5.312 MB / 1.144 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03109/0.5278, allocations: 14.61 MB / 1.159 GB, free: 13.25 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01107/0.5389, allocations: 3.678 MB / 1.162 GB, free: 9.559 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004317/0.5433, allocations: 1.592 MB / 1.164 GB, free: 7.969 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001248/0.5435, allocations: 21.3 kB / 1.164 GB, free: 7.945 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0046/0.5481, allocations: 1.922 MB / 1.166 GB, free: 5.961 MB / 0.92 GB Notification: Performance of pre-optimization done (n=163): time 3.967e-06/0.5481, allocations: 0 / 1.166 GB, free: 5.961 MB / 0.92 GB Notification: Performance of matching and sorting (n=250): time 0.1386/0.6867, allocations: 34.13 MB / 1.199 GB, free: 3.598 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002683/0.687, allocations: 0.4966 MB / 1.199 GB, free: 2.988 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003329/0.6903, allocations: 2.304 MB / 1.202 GB, free: 0.6719 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0004638/0.6908, allocations: 77.7 kB / 1.202 GB, free: 0.5898 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001276/0.6921, allocations: 1.423 MB / 1.203 GB, free: 15.15 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008865/0.693, allocations: 0.824 MB / 1.204 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003438/0.6933, allocations: 190.4 kB / 1.204 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.6935, allocations: 301.1 kB / 1.204 GB, free: 13.83 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005717/0.6992, allocations: 2.112 MB / 1.206 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006102/0.7053, allocations: 2.426 MB / 1.209 GB, free: 9.199 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01205/0.7174, allocations: 4.536 MB / 1.213 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.941e-05/0.7175, allocations: 4 kB / 1.213 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02051/0.738, allocations: 6.914 MB / 1.22 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.7382, allocations: 148.5 kB / 1.22 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.079e-05/0.7382, allocations: 4 kB / 1.22 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01026/0.7485, allocations: 2.934 MB / 1.223 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003099/0.7516, allocations: 0.5696 MB / 1.224 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03907/0.7907, allocations: 17.36 MB / 1.241 GB, free: 8.223 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004288/0.795, allocations: 419.6 kB / 1.241 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000341/0.7954, allocations: 87.97 kB / 1.241 GB, free: 7.727 MB / 0.9981 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.001517/0.7969, allocations: 0.7066 MB / 1.242 GB, free: 7.012 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005632/0.7975, allocations: 332.1 kB / 1.242 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007655/0.7983, allocations: 384.1 kB / 1.242 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/0.7983, allocations: 27.98 kB / 1.242 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.491e-05/0.7983, allocations: 12 kB / 1.242 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.857e-05/0.7984, allocations: 11.95 kB / 1.242 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004498/0.8029, allocations: 3.624 MB / 1.246 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.8029, allocations: 0 / 1.246 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002593/0.8055, allocations: 0.4955 MB / 1.246 GB, free: 2.07 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.6328/1.438, allocations: 2.866 MB / 1.249 GB, free: 174.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006397/1.439, allocations: 55.02 kB / 1.249 GB, free: 174.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03765/1.477, allocations: 17.15 MB / 1.266 GB, free: 172 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/1.477, allocations: 0.75 kB / 1.266 GB, free: 172 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02085/1.498, allocations: 6.552 MB / 1.272 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002239/1.5, allocations: 0.6999 MB / 1.273 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007766/1.501, allocations: 44.27 kB / 1.273 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003785/1.504, allocations: 410.6 kB / 1.274 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001493/1.506, allocations: 348 kB / 1.274 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002449/1.506, allocations: 74.62 kB / 1.274 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002635/1.509, allocations: 1.535 MB / 1.276 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.2e-07/1.509, allocations: 0 / 1.276 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00393/1.513, allocations: 1.04 MB / 1.277 GB, free: 170.1 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.0004385/1.513, allocations: 168.1 kB / 1.277 GB, free: 170 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02386/1.537, allocations: 6.837 MB / 1.283 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/1.537, allocations: 1.5 kB / 1.283 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01731/1.555, allocations: 4.244 MB / 1.288 GB, free: 166.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005468/1.56, allocations: 1.048 MB / 1.289 GB, free: 166 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/1.574, allocations: 8.131 MB / 1.296 GB, free: 161.9 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001646/1.575, allocations: 2.233 MB / 1.299 GB, free: 160.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002553/1.578, allocations: 0.5159 MB / 1.299 GB, free: 160.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006445/1.579, allocations: 178 kB / 1.299 GB, free: 160.8 MB / 0.9981 GB Notification: Performance of SimCode: time 1.102e-06/1.579, allocations: 0 / 1.299 GB, free: 160.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.09727/1.676, allocations: 72.05 MB / 1.37 GB, free: 93.77 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches