Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002643/0.002643, allocations: 79.7 kB / 20.23 MB, free: 4.191 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002986/0.002986, allocations: 157.3 kB / 23.55 MB, free: 0.8789 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.681/1.681, allocations: 177.1 MB / 203.9 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.019/3.019, allocations: 377.8 MB / 0.6232 GB, free: 8.559 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 0.8108 GB, free: 2.09 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.057e-05/3.233e-05, allocations: 8.969 kB / 0.8108 GB, free: 2.082 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.03363/0.03366, allocations: 22.68 MB / 0.833 GB, free: 11.35 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0335/0.06716, allocations: 17.79 MB / 0.8503 GB, free: 9.547 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003374/0.07053, allocations: 174.6 kB / 0.8505 GB, free: 9.375 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.01245/0.08298, allocations: 4.283 MB / 0.8547 GB, free: 5.074 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.01247/0.09545, allocations: 3.704 MB / 0.8583 GB, free: 1.359 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.003717/0.09917, allocations: 1.318 MB / 0.8596 GB, free: 40 kB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.00972/0.1089, allocations: 5.955 MB / 0.8654 GB, free: 10.06 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005186/0.1141, allocations: 2.841 MB / 0.8682 GB, free: 7.145 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007234/0.1213, allocations: 3.711 MB / 0.8718 GB, free: 3.426 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004504/0.1258, allocations: 2.022 MB / 0.8738 GB, free: 1.398 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 0.0007335/0.1265, allocations: 364 kB / 0.8741 GB, free: 1.043 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002355/0.1289, allocations: 0.9783 MB / 0.8751 GB, free: 64 kB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.001526/0.1304, allocations: 1.285 MB / 0.8763 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.002354/0.1328, allocations: 1.375 MB / 0.8777 GB, free: 13.39 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.007709/0.1405, allocations: 5.226 MB / 0.8828 GB, free: 8.152 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.1405, allocations: 0 / 0.8828 GB, free: 8.152 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.874e-06/0.1405, allocations: 0 / 0.8828 GB, free: 8.152 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.0001149/0.1406, allocations: 4 kB / 0.8828 GB, free: 8.148 MB / 0.8386 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.01151/0.1521, allocations: 4.954 MB / 0.8876 GB, free: 3.09 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.1522, allocations: 8.031 kB / 0.8876 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01466/0.1668, allocations: 3.073 MB / 0.8906 GB, free: 4 kB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005567/0.1724, allocations: 2.25 MB / 0.8928 GB, free: 13.68 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005429/0.1729, allocations: 466.3 kB / 0.8933 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005829/0.1735, allocations: 248.3 kB / 0.8935 GB, free: 12.91 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008622/0.1821, allocations: 3.851 MB / 0.8973 GB, free: 8.797 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.21e-05/0.1822, allocations: 0 / 0.8973 GB, free: 8.797 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003327/0.1825, allocations: 107.9 kB / 0.8974 GB, free: 8.691 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002541/0.1828, allocations: 172.8 kB / 0.8976 GB, free: 8.52 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008278/0.1911, allocations: 2.697 MB / 0.9002 GB, free: 5.809 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02069/0.2118, allocations: 9.001 MB / 0.909 GB, free: 12.67 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007269/0.219, allocations: 2.237 MB / 0.9112 GB, free: 10.42 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002458/0.2215, allocations: 0.8184 MB / 0.912 GB, free: 9.602 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000164/0.2216, allocations: 37.28 kB / 0.912 GB, free: 9.566 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003671/0.2253, allocations: 2.011 MB / 0.914 GB, free: 7.309 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=163): time 3.476e-06/0.2253, allocations: 0 / 0.914 GB, free: 7.309 MB / 0.8698 GB Notification: Performance of matching and sorting (n=250): time 0.03864/0.264, allocations: 9.353 MB / 0.9231 GB, free: 13.92 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00039/0.2643, allocations: 0.5045 MB / 0.9236 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003895/0.2682, allocations: 2.441 MB / 0.926 GB, free: 10.85 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0003674/0.2686, allocations: 77.7 kB / 0.926 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001918/0.2705, allocations: 1.621 MB / 0.9276 GB, free: 9.133 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001188/0.2717, allocations: 0.9184 MB / 0.9285 GB, free: 8.207 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/0.2728, allocations: 486.6 kB / 0.929 GB, free: 7.723 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000468/0.2732, allocations: 480.7 kB / 0.9294 GB, free: 7.25 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003875/0.2771, allocations: 1.27 MB / 0.9307 GB, free: 5.945 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004629/0.2817, allocations: 2.111 MB / 0.9327 GB, free: 3.594 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00814/0.2899, allocations: 3.049 MB / 0.9357 GB, free: 392 kB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.2899, allocations: 0 / 0.9357 GB, free: 392 kB / 0.8855 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.0176/0.3075, allocations: 4.869 MB / 0.9405 GB, free: 11.39 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001644/0.3076, allocations: 156.4 kB / 0.9406 GB, free: 11.21 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.478e-05/0.3077, allocations: 8 kB / 0.9406 GB, free: 11.2 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01535/0.323, allocations: 2.981 MB / 0.9435 GB, free: 8.211 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002533/0.3256, allocations: 391.4 kB / 0.9439 GB, free: 7.828 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04135/0.3669, allocations: 13.58 MB / 0.9572 GB, free: 10.04 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003668/0.3706, allocations: 211.8 kB / 0.9574 GB, free: 9.836 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003707/0.3709, allocations: 87.97 kB / 0.9575 GB, free: 9.75 MB / 0.9167 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.001422/0.3724, allocations: 466.2 kB / 0.9579 GB, free: 9.285 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000929/0.3733, allocations: 398.1 kB / 0.9583 GB, free: 8.895 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009787/0.3743, allocations: 357.2 kB / 0.9586 GB, free: 8.535 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.129e-05/0.3743, allocations: 35.86 kB / 0.9587 GB, free: 8.5 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.424e-05/0.3743, allocations: 12 kB / 0.9587 GB, free: 8.488 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.522e-05/0.3744, allocations: 15.95 kB / 0.9587 GB, free: 8.473 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004926/0.3793, allocations: 2.672 MB / 0.9613 GB, free: 5.754 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.959e-06/0.3793, allocations: 0 / 0.9613 GB, free: 5.754 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001987/0.3813, allocations: 303.6 kB / 0.9616 GB, free: 5.457 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01449/0.3958, allocations: 2.941 MB / 0.9645 GB, free: 2.508 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000474/0.3963, allocations: 47.97 kB / 0.9645 GB, free: 2.461 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03964/0.4359, allocations: 13.34 MB / 0.9775 GB, free: 4.867 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.4359, allocations: 4 kB / 0.9775 GB, free: 4.863 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01654/0.4524, allocations: 4.443 MB / 0.9819 GB, free: 396 kB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002387/0.4548, allocations: 0.5836 MB / 0.9825 GB, free: 15.8 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006137/0.4554, allocations: 47.98 kB / 0.9825 GB, free: 15.75 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002603/0.458, allocations: 207.7 kB / 0.9827 GB, free: 15.55 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001263/0.4593, allocations: 378.5 kB / 0.9831 GB, free: 15.18 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002386/0.4595, allocations: 71.97 kB / 0.9831 GB, free: 15.11 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.002457/0.462, allocations: 1.469 MB / 0.9846 GB, free: 13.63 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.2e-07/0.462, allocations: 4 kB / 0.9846 GB, free: 13.63 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003581/0.4656, allocations: 1.039 MB / 0.9856 GB, free: 12.59 MB / 0.948 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.000418/0.466, allocations: 163.1 kB / 0.9857 GB, free: 12.42 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.02201/0.488, allocations: 5.257 MB / 0.9909 GB, free: 7.023 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.488, allocations: 0 / 0.9909 GB, free: 7.023 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.01757/0.5056, allocations: 3.53 MB / 0.9943 GB, free: 3.449 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005072/0.5107, allocations: 1.109 MB / 0.9954 GB, free: 2.383 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01488/0.5255, allocations: 6.035 MB / 1.001 GB, free: 12.29 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00234/0.5279, allocations: 1.636 MB / 1.003 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.002162/0.5301, allocations: 403.4 kB / 1.003 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007323/0.5308, allocations: 180.4 kB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of SimCode: time 1.643e-06/0.5308, allocations: 0 / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of Templates: time 0.5555/1.086, allocations: 73.65 MB / 1.075 GB, free: 267 MB / 1.01 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.968890876043588]