Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, 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.001147/0.001147, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.404/1.404, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.752/2.752, allocations: 472.6 MB / 0.7448 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 60.7 kB / 0.9116 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.3199, allocations: 159.9 MB / 1.068 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.009035/0.329, allocations: 6.295 MB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006804/0.3358, allocations: 4.498 MB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00054/0.3364, allocations: 19.88 kB / 1.078 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002344/0.3388, allocations: 0.8638 MB / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002327/0.3411, allocations: 0.7046 MB / 1.08 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007664/0.3419, allocations: 287.6 kB / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.00147/0.3434, allocations: 1.133 MB / 1.081 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001056/0.3445, allocations: 0.7827 MB / 1.082 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00063/0.3451, allocations: 478.3 kB / 1.082 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000645/0.3458, allocations: 0.5098 MB / 1.083 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.812e-05/0.3459, allocations: 68 kB / 1.083 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005552/0.3464, allocations: 283.5 kB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002693/0.3467, allocations: 247.3 kB / 1.083 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004947/0.3472, allocations: 417.9 kB / 1.084 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.3483, allocations: 1.075 MB / 1.085 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3483, allocations: 0 / 1.085 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3483, allocations: 0 / 1.085 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.164e-05/0.3483, allocations: 3.938 kB / 1.085 GB, free: 9.035 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001888/0.3502, allocations: 1.09 MB / 1.086 GB, free: 7.895 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3503, allocations: 8.031 kB / 1.086 GB, free: 7.887 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003184/0.3535, allocations: 0.6397 MB / 1.087 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007286/0.3542, allocations: 0.5424 MB / 1.087 GB, free: 6.664 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.3543, allocations: 41.67 kB / 1.087 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.549e-05/0.3543, allocations: 56.12 kB / 1.087 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002199/0.3565, allocations: 1.014 MB / 1.088 GB, free: 5.512 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.3566, allocations: 3.938 kB / 1.088 GB, free: 5.508 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.062e-05/0.3567, allocations: 27.98 kB / 1.088 GB, free: 5.48 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.846e-05/0.3567, allocations: 49.28 kB / 1.088 GB, free: 5.434 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00216/0.3589, allocations: 1.004 MB / 1.089 GB, free: 4.43 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00415/0.3631, allocations: 3.497 MB / 1.093 GB, free: 0.625 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001356/0.3644, allocations: 0.4905 MB / 1.093 GB, free: 128 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005231/0.365, allocations: 228.7 kB / 1.093 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.365, allocations: 7.984 kB / 1.093 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.3651, allocations: 38.56 kB / 1.093 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=31): time 3.757e-06/0.3651, allocations: 3.984 kB / 1.093 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=43): time 0.006419/0.3715, allocations: 2.02 MB / 1.095 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.3715, allocations: 55.41 kB / 1.096 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006047/0.3722, allocations: 0.5665 MB / 1.096 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.212e-05/0.3722, allocations: 37.7 kB / 1.096 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002232/0.3724, allocations: 352.2 kB / 1.096 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.3726, allocations: 153.8 kB / 1.097 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.3727, allocations: 98.16 kB / 1.097 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3729, allocations: 374.7 kB / 1.097 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006261/0.3735, allocations: 254.9 kB / 1.097 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006695/0.3742, allocations: 369.8 kB / 1.098 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/0.3755, allocations: 0.6148 MB / 1.098 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3755, allocations: 0 / 1.098 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00226/0.3778, allocations: 0.9312 MB / 1.099 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.3778, allocations: 8 kB / 1.099 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.3778, allocations: 4.344 kB / 1.099 GB, free: 9.828 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/0.3789, allocations: 272.9 kB / 1.099 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005761/0.3795, allocations: 119.8 kB / 1.1 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007758/0.3872, allocations: 9.105 MB / 1.108 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006179/0.3879, allocations: 48.02 kB / 1.108 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.3879, allocations: 16 kB / 1.108 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008738/0.3888, allocations: 441 kB / 1.109 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007015/0.3895, allocations: 361.4 kB / 1.109 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001264/0.3908, allocations: 0.6051 MB / 1.11 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.347e-06/0.3908, allocations: 4 kB / 1.11 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002455/0.3933, allocations: 1.117 MB / 1.111 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.3933, allocations: 12.28 kB / 1.111 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3933, allocations: 8 kB / 1.111 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007937/0.3941, allocations: 224.9 kB / 1.111 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006007/0.3947, allocations: 131.7 kB / 1.111 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007179/0.4019, allocations: 8.801 MB / 1.12 GB, free: 2.719 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006442/0.4026, allocations: 39.95 kB / 1.12 GB, free: 2.68 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.505e-05/0.4027, allocations: 24.05 kB / 1.12 GB, free: 2.656 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002304/0.4029, allocations: 212.1 kB / 1.12 GB, free: 2.441 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/0.4031, allocations: 67.25 kB / 1.12 GB, free: 2.375 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001857/0.4033, allocations: 78.38 kB / 1.12 GB, free: 2.297 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.4033, allocations: 4 kB / 1.12 GB, free: 2.293 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.4033, allocations: 8 kB / 1.12 GB, free: 2.285 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.4033, allocations: 3.984 kB / 1.12 GB, free: 2.281 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008883/0.4042, allocations: 0.6377 MB / 1.121 GB, free: 1.594 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.4042, allocations: 0 / 1.121 GB, free: 1.594 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004796/0.4047, allocations: 87.91 kB / 1.121 GB, free: 1.508 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001074/0.4058, allocations: 269 kB / 1.121 GB, free: 1.227 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.071e-05/0.4058, allocations: 4 kB / 1.121 GB, free: 1.223 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007645/0.4135, allocations: 9.069 MB / 1.13 GB, free: 7.309 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4135, allocations: 0 / 1.13 GB, free: 7.309 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.416, allocations: 0.9169 MB / 1.131 GB, free: 6.355 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000326/0.4164, allocations: 184.2 kB / 1.131 GB, free: 6.156 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.4165, allocations: 12 kB / 1.131 GB, free: 6.145 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000614/0.4171, allocations: 35.95 kB / 1.131 GB, free: 6.109 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.4172, allocations: 40.08 kB / 1.131 GB, free: 6.07 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.468e-05/0.4173, allocations: 11.98 kB / 1.131 GB, free: 6.059 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0006056/0.4179, allocations: 407.1 kB / 1.132 GB, free: 5.664 MB / 0.8887 GB Notification: Performance of sort global known variables: time 4.01e-07/0.4179, allocations: 4 kB / 1.132 GB, free: 5.66 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001214/0.4191, allocations: 296 kB / 1.132 GB, free: 5.371 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001721/0.4193, allocations: 115.2 kB / 1.132 GB, free: 5.25 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00411/0.4234, allocations: 2.403 MB / 1.134 GB, free: 2.691 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 7.004e-06/0.4234, allocations: 0 / 1.134 GB, free: 2.691 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.4249, allocations: 1 MB / 1.135 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.426, allocations: 234.8 kB / 1.136 GB, free: 1.395 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002792/0.4288, allocations: 1.555 MB / 1.137 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006127/0.4294, allocations: 0.9821 MB / 1.138 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0006351/0.4301, allocations: 149.4 kB / 1.138 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.4302, allocations: 43.42 kB / 1.138 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of SimCode: time 6.01e-07/0.4302, allocations: 0 / 1.138 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of Templates: time 0.02351/0.4538, allocations: 13.42 MB / 1.151 GB, free: 1.34 MB / 0.9044 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_DCLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches