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.001516/0.001516, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.001633/0.001633, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.551/1.551, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00168/0.00168, allocations: 47.92 kB / 373.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1295, allocations: 53.32 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005141/0.1347, allocations: 3.01 MB / 429.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.1362, allocations: 0.7361 MB / 430.5 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.1364, allocations: 8 kB / 430.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002522/0.1367, allocations: 67.36 kB / 430.6 MB, free: 468 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000294/0.137, allocations: 111.1 kB / 430.7 MB, free: 356 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003812/0.1373, allocations: 111.8 kB / 430.8 MB, free: 244 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.244/0.3814, allocations: 404.5 kB / 431.2 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003955/0.3818, allocations: 146.1 kB / 431.4 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.3821, allocations: 163.9 kB / 431.5 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003351/0.3824, allocations: 184.4 kB / 431.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.277e-05/0.3825, allocations: 39.5 kB / 431.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001899/0.3827, allocations: 56.25 kB / 431.8 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001926/0.3829, allocations: 111.6 kB / 431.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000221/0.3831, allocations: 206.9 kB / 432.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007233/0.3838, allocations: 0.4939 MB / 432.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.3838, allocations: 0.5938 kB / 432.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3838, allocations: 0 / 432.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.3838, allocations: 0 / 432.6 MB, free: 7.965 MB / 350.1 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.001768/0.3856, allocations: 0.7966 MB / 433.4 MB, free: 7.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.3856, allocations: 10.97 kB / 433.4 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.3857, allocations: 41.05 kB / 433.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.3862, allocations: 354.4 kB / 433.8 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/0.3862, allocations: 27.28 kB / 433.8 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.134e-05/0.3863, allocations: 35.75 kB / 433.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006653/0.387, allocations: 341.1 kB / 434.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.387, allocations: 3.938 kB / 434.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.061e-05/0.387, allocations: 11.25 kB / 434.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.3871, allocations: 8.234 kB / 434.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007154/0.3878, allocations: 239.9 kB / 434.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.3905, allocations: 1.303 MB / 435.7 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000507/0.391, allocations: 161.2 kB / 435.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000372/0.3913, allocations: 113.6 kB / 436 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.824e-05/0.3914, allocations: 10.39 kB / 436 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.3914, allocations: 35.53 kB / 436.1 MB, free: 6.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.873e-06/0.3914, allocations: 0 / 436.1 MB, free: 6.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007366/0.3922, allocations: 235.1 kB / 436.3 MB, free: 6.406 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.3922, allocations: 58.73 kB / 436.3 MB, free: 6.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005544/0.3928, allocations: 316.4 kB / 436.7 MB, free: 6.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.3928, allocations: 27.11 kB / 436.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/0.393, allocations: 213.3 kB / 436.9 MB, free: 6.066 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.053e-05/0.3931, allocations: 59.69 kB / 436.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.3932, allocations: 46.97 kB / 437 MB, free: 6.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3933, allocations: 335.3 kB / 437.3 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002219/0.3936, allocations: 73.45 kB / 437.4 MB, free: 5.699 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003072/0.3939, allocations: 136.2 kB / 437.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003621/0.3942, allocations: 165.8 kB / 437.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.3942, allocations: 5 kB / 437.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006264/0.3949, allocations: 243.5 kB / 437.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.3949, allocations: 8.312 kB / 437.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.3949, allocations: 7.234 kB / 437.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.74e-05/0.3949, allocations: 3.375 kB / 437.9 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.3952, allocations: 45.11 kB / 438 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.3952, allocations: 7.812 kB / 438 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006071/0.3958, allocations: 78 kB / 438.1 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.373e-05/0.3959, allocations: 10.62 kB / 438.1 MB, free: 5.379 MB / 350.1 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 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * 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 0.0001969/0.3961, allocations: 152.8 kB / 438.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.009e-05/0.3962, allocations: 28.19 kB / 438.3 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005763/0.3967, allocations: 205.9 kB / 438.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3967, allocations: 1.219 kB / 438.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.3967, allocations: 5.828 kB / 438.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.3968, allocations: 0.5625 kB / 438.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001189/0.3979, allocations: 0.6268 MB / 439.1 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3979, allocations: 0 / 439.1 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002392/0.3982, allocations: 35.62 kB / 439.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3982, allocations: 1.156 kB / 439.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.3982, allocations: 1.891 kB / 439.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.3982, allocations: 1.094 kB / 439.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.3982, allocations: 1.797 kB / 439.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006763/0.3989, allocations: 383.7 kB / 439.5 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.6e-05/0.399, allocations: 111.5 kB / 439.6 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.56e-05/0.399, allocations: 3.078 kB / 439.6 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006067/0.3997, allocations: 58.88 kB / 439.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002745/0.3999, allocations: 73.45 kB / 439.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-05/0.4, allocations: 9.188 kB / 439.8 MB, free: 4.309 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003438/0.4003, allocations: 232.3 kB / 440 MB, free: 4.184 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4003, allocations: 0 / 440 MB, free: 4.184 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006527/0.4009, allocations: 89.66 kB / 440.1 MB, free: 4.16 MB / 350.1 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.0002154/0.4012, allocations: 110.2 kB / 440.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005626/0.4017, allocations: 176.3 kB / 440.4 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4017, allocations: 0 / 440.4 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002781/0.402, allocations: 110.1 kB / 440.5 MB, free: 3.988 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006601/0.4027, allocations: 50.64 kB / 440.5 MB, free: 3.965 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001988/0.4047, allocations: 0.722 MB / 441.2 MB, free: 3.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.405, allocations: 0.7726 MB / 442 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000206/0.4052, allocations: 36.48 kB / 442 MB, free: 2.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.4053, allocations: 23.56 kB / 442.1 MB, free: 2.832 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4053, allocations: 3.938 kB / 442.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of Templates: time 0.01538/0.4207, allocations: 4.569 MB / 446.6 MB, free: 2.555 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.430342677980661]