Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.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.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cab.1..Amp|cab.2..Amp|cab.3..Amp|cab.4..Amp|cab.5..Amp|cab.6..Amp|cab.7..Amp",fileNamePrefix="Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") translateModel(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cab.1..Amp|cab.2..Amp|cab.3..Amp|cab.4..Amp|cab.5..Amp|cab.6..Amp|cab.7..Amp",fileNamePrefix="Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001226/0.001226, allocations: 193.6 kB / 16.14 MB, free: 6.699 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.386/1.386, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.898/2.898, allocations: 472.6 MB / 0.7447 GB, free: 4.977 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00209/0.00209, allocations: 67.2 kB / 0.9114 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3578, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002585/0.3604, allocations: 1.467 MB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002758/0.3632, allocations: 2.643 MB / 1.072 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.823e-05/0.3632, allocations: 0 / 1.072 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.3645, allocations: 0.5599 MB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.558e-05/0.3646, allocations: 19.91 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 3.507e-06/0.3646, allocations: 0 / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002622/0.3649, allocations: 170.9 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.617e-05/0.3649, allocations: 32.41 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.744e-05/0.365, allocations: 55.67 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.3651, allocations: 83.58 kB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.3652, allocations: 4 kB / 1.072 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009917/0.3661, allocations: 499.2 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.567e-05/0.3662, allocations: 35.83 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.3663, allocations: 95.38 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005784/0.3669, allocations: 398.3 kB / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3669, allocations: 0 / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3669, allocations: 0 / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.3669, allocations: 0 / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0007527/0.3677, allocations: 0.5452 MB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.3678, allocations: 19.97 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.3679, allocations: 99.94 kB / 1.074 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002437/0.3682, allocations: 302.3 kB / 1.074 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.799e-05/0.3682, allocations: 162.9 kB / 1.075 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.018e-05/0.3683, allocations: 150.9 kB / 1.075 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.748e-05/0.3684, allocations: 101.5 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.631e-05/0.3684, allocations: 79.47 kB / 1.075 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.034e-05/0.3685, allocations: 158.5 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.845e-05/0.3685, allocations: 150.6 kB / 1.075 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.98e-05/0.3686, allocations: 154.5 kB / 1.075 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003495/0.3689, allocations: 0.5289 MB / 1.076 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.099e-05/0.369, allocations: 173.1 kB / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.277e-05/0.3691, allocations: 80.14 kB / 1.076 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.3691, allocations: 79.28 kB / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.442e-05/0.3691, allocations: 105.8 kB / 1.076 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=0): time 2.244e-06/0.3691, allocations: 0 / 1.076 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of matching and sorting (n=0): time 0.000175/0.3693, allocations: 65.28 kB / 1.076 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.3694, allocations: 126.7 kB / 1.076 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000414/0.3698, allocations: 433.2 kB / 1.077 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.3698, allocations: 25.7 kB / 1.077 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.32e-05/0.3699, allocations: 140.4 kB / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.725e-06/0.3699, allocations: 0 / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.133e-05/0.37, allocations: 89.66 kB / 1.077 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.3701, allocations: 338.8 kB / 1.077 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.3702, allocations: 100.5 kB / 1.077 GB, free: 472 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.3704, allocations: 169.2 kB / 1.078 GB, free: 280 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/0.3707, allocations: 297.6 kB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3708, allocations: 8 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004725/0.3712, allocations: 324.9 kB / 1.078 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.3713, allocations: 8 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-06/0.3713, allocations: 3.938 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.3713, allocations: 4 kB / 1.078 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.924e-06/0.3713, allocations: 0 / 1.078 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.3713, allocations: 4 kB / 1.078 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.3715, allocations: 51.27 kB / 1.078 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.3715, allocations: 4 kB / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (cab[1].material,cab[2].material,cab[3].material,cab[4].material,cab[5].material,cab[6].material,cab[7].material) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002997/0.3718, allocations: 255.1 kB / 1.079 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.383e-05/0.3719, allocations: 120.7 kB / 1.079 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.455e-05/0.3719, allocations: 114.7 kB / 1.079 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-05/0.372, allocations: 188.2 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.373e-05/0.3721, allocations: 180.3 kB / 1.079 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.954e-05/0.3722, allocations: 184.2 kB / 1.079 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003219/0.3725, allocations: 469.2 kB / 1.08 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.231e-05/0.3726, allocations: 105 kB / 1.08 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.491e-05/0.3726, allocations: 112.9 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.571e-05/0.3727, allocations: 184.5 kB / 1.08 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.065e-05/0.3728, allocations: 188.2 kB / 1.08 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.387e-05/0.3728, allocations: 180.3 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.258e-05/0.3729, allocations: 180.3 kB / 1.081 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001759/0.3731, allocations: 327.4 kB / 1.081 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.3732, allocations: 201.8 kB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.3733, allocations: 184.2 kB / 1.081 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.3735, allocations: 105 kB / 1.081 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.024e-05/0.3736, allocations: 188.2 kB / 1.082 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/0.3736, allocations: 101 kB / 1.082 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000275/0.3739, allocations: 275.1 kB / 1.082 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3739, allocations: 3.938 kB / 1.082 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004191/0.3743, allocations: 80 kB / 1.082 GB, free: 11.49 MB / 0.8419 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004099/0.3748, allocations: 306.3 kB / 1.082 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002427/0.375, allocations: 167.8 kB / 1.083 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.375, allocations: 0 / 1.083 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.372e-06/0.375, allocations: 0 / 1.083 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004591/0.3755, allocations: 0.5287 MB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006448/0.3761, allocations: 0.5395 MB / 1.084 GB, free: 9.914 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000341/0.3765, allocations: 0.7823 MB / 1.084 GB, free: 9.105 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 1.834e-05/0.3765, allocations: 4 kB / 1.084 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.104e-05/0.3765, allocations: 7.438 kB / 1.084 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.3765, allocations: 0 / 1.084 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of Templates: time 0.006014/0.3826, allocations: 2.822 MB / 1.087 GB, free: 6.281 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.makefile (rm -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & ./Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches