Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.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.001438/0.001438, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 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.001819/0.001819, allocations: 216.3 kB / 23.01 MB, free: 4.609 MB / 14.72 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.652/1.652, allocations: 230.6 MB / 256.8 MB, free: 8.055 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.303/3.303, allocations: 0.49 GB / 0.7958 GB, free: 33.59 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002074/0.002074, allocations: 66.59 kB / 1.155 GB, free: 25.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3323, allocations: 176.1 MB / 1.327 GB, free: 1.512 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006817/0.3391, allocations: 4.545 MB / 1.332 GB, free: 12.95 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003416/0.3425, allocations: 1.967 MB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/0.3427, allocations: 15.88 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001762/0.3445, allocations: 0.611 MB / 1.334 GB, free: 10.35 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0006213/0.3451, allocations: 270.6 kB / 1.334 GB, free: 10.08 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006469/0.3458, allocations: 255.4 kB / 1.335 GB, free: 9.832 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0007297/0.3465, allocations: 0.6074 MB / 1.335 GB, free: 9.223 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000598/0.3471, allocations: 355 kB / 1.336 GB, free: 8.871 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.3474, allocations: 251.2 kB / 1.336 GB, free: 8.625 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005005/0.3479, allocations: 282.9 kB / 1.336 GB, free: 8.348 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.648e-05/0.348, allocations: 36 kB / 1.336 GB, free: 8.312 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004582/0.3484, allocations: 271.4 kB / 1.336 GB, free: 8.047 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001686/0.3486, allocations: 151.5 kB / 1.336 GB, free: 7.898 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000243/0.3488, allocations: 222.9 kB / 1.337 GB, free: 7.68 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000783/0.3496, allocations: 0.611 MB / 1.337 GB, free: 7.066 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.3496, allocations: 0 / 1.337 GB, free: 7.066 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3496, allocations: 3.938 kB / 1.337 GB, free: 7.062 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.3496, allocations: 0 / 1.337 GB, free: 7.062 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001349/0.351, allocations: 0.6571 MB / 1.338 GB, free: 6.375 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.351, allocations: 12.03 kB / 1.338 GB, free: 6.363 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001018/0.352, allocations: 144.5 kB / 1.338 GB, free: 6.223 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005309/0.3526, allocations: 280.8 kB / 1.338 GB, free: 5.922 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.3526, allocations: 25.38 kB / 1.338 GB, free: 5.898 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.004e-05/0.3527, allocations: 40.3 kB / 1.338 GB, free: 5.859 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008525/0.3535, allocations: 0.5356 MB / 1.339 GB, free: 5.285 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.3535, allocations: 0 / 1.339 GB, free: 5.285 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.327e-05/0.3536, allocations: 16 kB / 1.339 GB, free: 5.27 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.216e-05/0.3536, allocations: 32.62 kB / 1.339 GB, free: 5.238 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006251/0.3543, allocations: 386.3 kB / 1.339 GB, free: 4.863 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002907/0.3572, allocations: 2.368 MB / 1.342 GB, free: 2.277 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000545/0.3577, allocations: 238.5 kB / 1.342 GB, free: 2.035 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.3579, allocations: 100.8 kB / 1.342 GB, free: 1.934 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.3579, allocations: 4 kB / 1.342 GB, free: 1.93 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.358, allocations: 38.56 kB / 1.342 GB, free: 1.883 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.613e-06/0.358, allocations: 0 / 1.342 GB, free: 1.883 MB / 1.029 GB Notification: Performance of matching and sorting (n=23): time 0.002215/0.3602, allocations: 0.9008 MB / 1.343 GB, free: 0.9414 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.168e-05/0.3602, allocations: 55.41 kB / 1.343 GB, free: 0.875 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003562/0.3606, allocations: 312.4 kB / 1.343 GB, free: 0.5586 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.3606, allocations: 29.7 kB / 1.343 GB, free: 0.5234 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.3608, allocations: 232.1 kB / 1.343 GB, free: 296 kB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.047e-05/0.3609, allocations: 83.33 kB / 1.344 GB, free: 212 kB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.361, allocations: 61.98 kB / 1.344 GB, free: 140 kB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001858/0.3612, allocations: 342.8 kB / 1.344 GB, free: 15.79 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.3613, allocations: 100.6 kB / 1.344 GB, free: 15.7 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/0.3616, allocations: 195.7 kB / 1.344 GB, free: 15.46 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004589/0.362, allocations: 316.2 kB / 1.345 GB, free: 15.12 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.362, allocations: 4 kB / 1.345 GB, free: 15.12 MB / 1.045 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008392/0.3629, allocations: 442.2 kB / 1.345 GB, free: 14.67 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.3629, allocations: 8 kB / 1.345 GB, free: 14.66 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3629, allocations: 0 / 1.345 GB, free: 14.66 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003864/0.3633, allocations: 110.4 kB / 1.345 GB, free: 14.55 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000296/0.3636, allocations: 67.94 kB / 1.345 GB, free: 14.48 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003769/0.3674, allocations: 4.078 MB / 1.349 GB, free: 10.06 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002704/0.3676, allocations: 15.98 kB / 1.349 GB, free: 10.04 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.3677, allocations: 15.94 kB / 1.349 GB, free: 10.03 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002543/0.3679, allocations: 181.7 kB / 1.349 GB, free: 9.84 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.083e-05/0.368, allocations: 35.75 kB / 1.349 GB, free: 9.805 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.247e-05/0.3681, allocations: 46.41 kB / 1.349 GB, free: 9.758 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3681, allocations: 4 kB / 1.349 GB, free: 9.754 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.3681, allocations: 4 kB / 1.349 GB, free: 9.75 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3681, allocations: 0 / 1.349 GB, free: 9.75 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004997/0.3686, allocations: 368.5 kB / 1.35 GB, free: 9.348 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3686, allocations: 4 kB / 1.35 GB, free: 9.344 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/0.3688, allocations: 39.91 kB / 1.35 GB, free: 9.305 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003231/0.3691, allocations: 98.47 kB / 1.35 GB, free: 9.199 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.3691, allocations: 4 kB / 1.35 GB, free: 9.195 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003547/0.3727, allocations: 4.073 MB / 1.354 GB, free: 4.777 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3727, allocations: 0 / 1.354 GB, free: 4.777 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009347/0.3736, allocations: 0.5622 MB / 1.354 GB, free: 4.191 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001444/0.3738, allocations: 51.81 kB / 1.354 GB, free: 4.141 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.3738, allocations: 4 kB / 1.354 GB, free: 4.137 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.374, allocations: 15.94 kB / 1.354 GB, free: 4.121 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.347e-05/0.3741, allocations: 27.81 kB / 1.355 GB, free: 4.094 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.3741, allocations: 4 kB / 1.355 GB, free: 4.09 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002601/0.3744, allocations: 215.1 kB / 1.355 GB, free: 3.879 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3744, allocations: 0 / 1.355 GB, free: 3.879 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0005044/0.3749, allocations: 99.94 kB / 1.355 GB, free: 3.781 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001462/0.375, allocations: 107.2 kB / 1.355 GB, free: 3.668 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009442/0.376, allocations: 0.5898 MB / 1.356 GB, free: 3.039 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.376, allocations: 0 / 1.356 GB, free: 3.039 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0005617/0.3765, allocations: 466.2 kB / 1.356 GB, free: 2.547 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005082/0.377, allocations: 71.92 kB / 1.356 GB, free: 2.48 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.3784, allocations: 0.7769 MB / 1.357 GB, free: 1.668 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005022/0.3789, allocations: 0.8311 MB / 1.358 GB, free: 0.8047 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.911e-05/0.379, allocations: 27.44 kB / 1.358 GB, free: 0.7812 MB / 1.045 GB Notification: Performance of SimCode: time 4.01e-07/0.379, allocations: 0 / 1.358 GB, free: 0.7812 MB / 1.045 GB Notification: Performance of Templates: time 0.01233/0.3913, allocations: 8.71 MB / 1.366 GB, free: 8.086 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.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: 13.446790743997553]