Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002046/0.002046, allocations: 186 kB / 24.46 MB, free: 3.863 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 44.06 kB / 371.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2351, allocations: 52.17 MB / 423.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004479/0.2396, allocations: 2.788 MB / 426.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.241, allocations: 0.6856 MB / 427.3 MB, free: 11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2411, allocations: 8 kB / 427.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002066/0.2414, allocations: 63.36 kB / 427.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000273/0.2416, allocations: 115.1 kB / 427.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000335/0.242, allocations: 103.8 kB / 427.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004696/0.2424, allocations: 414.3 kB / 428 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.2427, allocations: 142.4 kB / 428.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000217/0.2429, allocations: 167.4 kB / 428.3 MB, free: 10 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002665/0.2432, allocations: 159.2 kB / 428.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.057e-05/0.2432, allocations: 40 kB / 428.5 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.2434, allocations: 55.98 kB / 428.5 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001667/0.2435, allocations: 111.6 kB / 428.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.2437, allocations: 171.2 kB / 428.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006209/0.2443, allocations: 0.4978 MB / 429.3 MB, free: 8.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2443, allocations: 0 / 429.3 MB, free: 8.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2443, allocations: 0 / 429.3 MB, free: 8.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.2443, allocations: 0 / 429.3 MB, free: 8.98 MB / 334.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.001714/0.2461, allocations: 0.7273 MB / 430 MB, free: 8.219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.2461, allocations: 8.031 kB / 430 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.514e-05/0.2462, allocations: 44.7 kB / 430.1 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005644/0.2468, allocations: 292.9 kB / 430.4 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.141e-05/0.2468, allocations: 25.03 kB / 430.4 MB, free: 7.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.113e-05/0.2469, allocations: 28.38 kB / 430.4 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006484/0.2475, allocations: 401.6 kB / 430.8 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.2475, allocations: 3.938 kB / 430.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.601e-05/0.2476, allocations: 16 kB / 430.8 MB, free: 7.375 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.2476, allocations: 8 kB / 430.8 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004566/0.248, allocations: 230.5 kB / 431 MB, free: 7.141 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.2499, allocations: 1.102 MB / 432.2 MB, free: 5.973 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003999/0.2503, allocations: 170.5 kB / 432.3 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002689/0.2506, allocations: 112.8 kB / 432.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.2506, allocations: 0 / 432.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.2507, allocations: 38.5 kB / 432.5 MB, free: 5.637 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.122e-06/0.2507, allocations: 0 / 432.5 MB, free: 5.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004973/0.2512, allocations: 236.9 kB / 432.7 MB, free: 5.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.2512, allocations: 59.34 kB / 432.8 MB, free: 5.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003697/0.2516, allocations: 297.8 kB / 433 MB, free: 5.031 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.2516, allocations: 29.7 kB / 433.1 MB, free: 4.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.2518, allocations: 220.3 kB / 433.3 MB, free: 4.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.624e-05/0.2518, allocations: 55.52 kB / 433.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.418e-05/0.2519, allocations: 53.66 kB / 433.4 MB, free: 4.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001978/0.2521, allocations: 330.8 kB / 433.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.2523, allocations: 71.97 kB / 433.8 MB, free: 4.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.2525, allocations: 131.7 kB / 433.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.2527, allocations: 170.1 kB / 434.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.2527, allocations: 4 kB / 434.1 MB, free: 3.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004204/0.2532, allocations: 241.4 kB / 434.3 MB, free: 3.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.2532, allocations: 8 kB / 434.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.2532, allocations: 0 / 434.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.2532, allocations: 4 kB / 434.3 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.2534, allocations: 47.91 kB / 434.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.2534, allocations: 4 kB / 434.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003924/0.2538, allocations: 67.77 kB / 434.5 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.2538, allocations: 16.03 kB / 434.5 MB, free: 3.523 MB / 334.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.0001899/0.254, allocations: 149.7 kB / 434.6 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.886e-05/0.2541, allocations: 27.8 kB / 434.6 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004319/0.2545, allocations: 199.7 kB / 434.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.2545, allocations: 4 kB / 434.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2545, allocations: 4 kB / 434.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2545, allocations: 0 / 434.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007823/0.2553, allocations: 0.5105 MB / 435.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2553, allocations: 0 / 435.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001751/0.2555, allocations: 36.02 kB / 435.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.2555, allocations: 4 kB / 435.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.2555, allocations: 0 / 435.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2555, allocations: 0 / 435.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.2555, allocations: 3.984 kB / 435.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005568/0.2561, allocations: 391.3 kB / 435.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.957e-05/0.2561, allocations: 27.84 kB / 435.8 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.105e-05/0.2562, allocations: 4 kB / 435.8 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004367/0.2566, allocations: 59.92 kB / 435.9 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.2568, allocations: 75.86 kB / 435.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.2568, allocations: 12 kB / 436 MB, free: 1.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002546/0.257, allocations: 217.2 kB / 436.2 MB, free: 1.746 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.257, allocations: 0 / 436.2 MB, free: 1.746 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003793/0.2574, allocations: 87.73 kB / 436.3 MB, free: 1.66 MB / 334.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.0001649/0.2576, allocations: 111.2 kB / 436.4 MB, free: 1.543 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003718/0.258, allocations: 175.7 kB / 436.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.258, allocations: 4 kB / 436.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001848/0.2582, allocations: 99.88 kB / 436.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003981/0.2586, allocations: 48.34 kB / 436.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.2601, allocations: 0.7461 MB / 437.4 MB, free: 452 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.2603, allocations: 176.8 kB / 437.6 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.2604, allocations: 23.44 kB / 437.6 MB, free: 232 kB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2604, allocations: 0 / 437.6 MB, free: 232 kB / 334.1 MB Notification: Performance of Templates: time 0.007841/0.2683, allocations: 4.298 MB / 441.9 MB, free: 11.95 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 8.441319802310318]