Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.0009473/0.0009473, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001346/0.001346, allocations: 169.1 kB / 24.91 MB, free: 9.191 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 0.9676/0.9676, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 273.4 MB, free: 1.344 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.085e-05/2.21e-05, allocations: 10.25 kB / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002889/0.002911, allocations: 2.968 MB / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.004084, allocations: 0.763 MB / 277.2 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001476/0.004232, allocations: 7.938 kB / 277.2 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.004407, allocations: 63.44 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.004623, allocations: 107 kB / 277.3 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.0049, allocations: 115.8 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.005221, allocations: 422.1 kB / 277.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.005406, allocations: 142.2 kB / 278 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001914/0.005597, allocations: 247.5 kB / 278.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001915/0.005789, allocations: 151.6 kB / 278.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.219e-05/0.005831, allocations: 40 kB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.184e-05/0.005923, allocations: 59.92 kB / 278.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.006029, allocations: 111.6 kB / 278.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.507e-05/0.006124, allocations: 143.7 kB / 278.7 MB, free: 12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003287/0.006453, allocations: 306.9 kB / 279 MB, free: 11.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.006456, allocations: 0 / 279 MB, free: 11.7 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.006457, allocations: 0 / 279 MB, free: 11.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.006462, allocations: 0 / 279 MB, free: 11.7 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.0008035/0.007265, allocations: 0.6595 MB / 279.7 MB, free: 11.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.007296, allocations: 12.03 kB / 279.7 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.055e-05/0.007367, allocations: 56.83 kB / 279.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.00761, allocations: 224.7 kB / 280 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.007627, allocations: 24.97 kB / 280 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.986e-05/0.007667, allocations: 36.38 kB / 280 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002758/0.007943, allocations: 301.4 kB / 280.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.007953, allocations: 192 / 280.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.007972, allocations: 12.38 kB / 280.3 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.00798, allocations: 11.94 kB / 280.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001172/0.008098, allocations: 87.3 kB / 280.4 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009177/0.009015, allocations: 0.8951 MB / 281.3 MB, free: 9.258 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001969/0.009212, allocations: 138.4 kB / 281.5 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.009312, allocations: 64.62 kB / 281.5 MB, free: 9.051 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.00934, allocations: 7.938 kB / 281.5 MB, free: 9.043 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.783e-05/0.009388, allocations: 34.56 kB / 281.6 MB, free: 9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.904e-06/0.00939, allocations: 3.938 kB / 281.6 MB, free: 8.996 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0001775/0.009567, allocations: 101.6 kB / 281.7 MB, free: 8.891 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.009593, allocations: 59.34 kB / 281.7 MB, free: 8.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.009741, allocations: 248.9 kB / 282 MB, free: 8.566 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.009758, allocations: 33.7 kB / 282 MB, free: 8.527 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.46e-05/0.009832, allocations: 196.8 kB / 282.2 MB, free: 8.328 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.009862, allocations: 51.52 kB / 282.3 MB, free: 8.277 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.402e-05/0.009916, allocations: 49.64 kB / 282.3 MB, free: 8.223 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.94e-05/0.009995, allocations: 338.8 kB / 282.6 MB, free: 7.883 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.696e-05/0.01003, allocations: 22.77 kB / 282.7 MB, free: 7.859 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.113e-05/0.01011, allocations: 88.27 kB / 282.7 MB, free: 7.746 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.93e-05/0.01021, allocations: 125.1 kB / 282.9 MB, free: 7.598 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.01022, allocations: 0 / 282.9 MB, free: 7.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000149/0.01036, allocations: 136.3 kB / 283 MB, free: 7.457 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.01038, allocations: 8 kB / 283 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.01038, allocations: 0 / 283 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.01039, allocations: 4 kB / 283 MB, free: 7.445 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.0105, allocations: 47.92 kB / 283.1 MB, free: 7.398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.0105, allocations: 7.938 kB / 283.1 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.01063, allocations: 47.84 kB / 283.1 MB, free: 7.344 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.01065, allocations: 8.219 kB / 283.1 MB, free: 7.336 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (energy.local_reset,pulseSeries.on2,pulseSeries.on1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 prepare postOptimizeDAE: time 8.784e-05/0.01073, allocations: 132.5 kB / 283.2 MB, free: 7.195 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.045e-05/0.01076, allocations: 15.98 kB / 283.3 MB, free: 7.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001858/0.01095, allocations: 119.6 kB / 283.4 MB, free: 7.059 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.01095, allocations: 4 kB / 283.4 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.01096, allocations: 7.938 kB / 283.4 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.01096, allocations: 7.922 kB / 283.4 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003619/0.01132, allocations: 375.5 kB / 283.8 MB, free: 6.641 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.01133, allocations: 4 kB / 283.8 MB, free: 6.637 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.045e-05/0.01142, allocations: 35.95 kB / 283.8 MB, free: 6.602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.01142, allocations: 4 kB / 283.8 MB, free: 6.598 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.01143, allocations: 0 / 283.8 MB, free: 6.598 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.01143, allocations: 3.938 kB / 283.8 MB, free: 6.594 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01143, allocations: 0 / 283.8 MB, free: 6.594 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001939/0.01163, allocations: 281.6 kB / 284.1 MB, free: 6.305 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.857e-05/0.01165, allocations: 23.81 kB / 284.1 MB, free: 6.281 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.01167, allocations: 0 / 284.1 MB, free: 6.281 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.01181, allocations: 47.92 kB / 284.2 MB, free: 6.234 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.96e-05/0.01188, allocations: 39.94 kB / 284.2 MB, free: 6.195 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.01189, allocations: 11.98 kB / 284.2 MB, free: 6.184 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.769e-05/0.01196, allocations: 86.78 kB / 284.3 MB, free: 6.094 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01196, allocations: 0 / 284.3 MB, free: 6.094 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002027/0.01216, allocations: 83.78 kB / 284.4 MB, free: 6.012 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.0001067/0.01226, allocations: 100.3 kB / 284.5 MB, free: 5.902 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001344/0.0124, allocations: 91.11 kB / 284.6 MB, free: 5.812 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.0124, allocations: 4 kB / 284.6 MB, free: 5.809 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.603e-05/0.01246, allocations: 43.61 kB / 284.6 MB, free: 5.762 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/0.01267, allocations: 32.48 kB / 284.6 MB, free: 5.73 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008644/0.01354, allocations: 0.6077 MB / 285.2 MB, free: 5.094 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.84e-05/0.0136, allocations: 92.3 kB / 285.3 MB, free: 4.984 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.655e-05/0.01367, allocations: 22.28 kB / 285.4 MB, free: 4.965 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.01381, allocations: 99.36 kB / 285.5 MB, free: 4.867 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.01381, allocations: 0 / 285.5 MB, free: 4.867 MB / 266.7 MB Notification: Performance of Templates: time 0.005687/0.0195, allocations: 3.96 MB / 289.4 MB, free: 0.9766 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.978202913887799]