Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001818/0.001818, allocations: 109.1 kB / 21.18 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00227/0.00227, allocations: 209.1 kB / 24.49 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 230.5 MB / 258.1 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 67.89 kB / 379 MB, free: 2.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2714, allocations: 53.4 MB / 432.4 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004915/0.2763, allocations: 3.028 MB / 435.5 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.2779, allocations: 0.7478 MB / 436.2 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002157/0.2781, allocations: 11.94 kB / 436.2 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002409/0.2784, allocations: 59.38 kB / 436.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003097/0.2787, allocations: 119.1 kB / 436.4 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003885/0.2791, allocations: 103.9 kB / 436.5 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004854/0.2795, allocations: 414.2 kB / 436.9 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/0.2798, allocations: 146.4 kB / 437 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.28, allocations: 159.5 kB / 437.2 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002905/0.2803, allocations: 187.2 kB / 437.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.943e-05/0.2804, allocations: 40 kB / 437.4 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.2805, allocations: 59.98 kB / 437.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000176/0.2807, allocations: 115.6 kB / 437.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002103/0.2809, allocations: 199.1 kB / 437.8 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007183/0.2816, allocations: 0.4953 MB / 438.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.2816, allocations: 4 kB / 438.3 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.2816, allocations: 0 / 438.3 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.2816, allocations: 0 / 438.3 MB, free: 0.9023 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.001811/0.2834, allocations: 0.7272 MB / 439 MB, free: 144 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.2835, allocations: 15.97 kB / 439 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.2836, allocations: 40.7 kB / 439.1 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006094/0.2842, allocations: 284.9 kB / 439.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.558e-05/0.2842, allocations: 25.03 kB / 439.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.746e-05/0.2843, allocations: 28.38 kB / 439.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005928/0.2849, allocations: 350.2 kB / 439.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.2849, allocations: 0 / 439.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.634e-05/0.2849, allocations: 16 kB / 439.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.2849, allocations: 8 kB / 439.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004729/0.2854, allocations: 238.5 kB / 440 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002035/0.2874, allocations: 1.261 MB / 441.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004216/0.2879, allocations: 158.5 kB / 441.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00027/0.2881, allocations: 117 kB / 441.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.157e-05/0.2882, allocations: 4 kB / 441.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.568e-05/0.2882, allocations: 46.5 kB / 441.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.2882, allocations: 0 / 441.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005278/0.2888, allocations: 237.3 kB / 441.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.2888, allocations: 51.41 kB / 441.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004377/0.2892, allocations: 320.2 kB / 442.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.749e-05/0.2893, allocations: 33.7 kB / 442.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.2894, allocations: 212.4 kB / 442.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.811e-05/0.2895, allocations: 47.59 kB / 442.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.987e-05/0.2896, allocations: 49.66 kB / 442.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.2898, allocations: 338.8 kB / 442.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.2899, allocations: 71.95 kB / 442.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.2901, allocations: 132.3 kB / 443 MB, free: 11.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002583/0.2904, allocations: 166 kB / 443.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2904, allocations: 4 kB / 443.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004195/0.2908, allocations: 249.1 kB / 443.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.2908, allocations: 4 kB / 443.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.2908, allocations: 4 kB / 443.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.2908, allocations: 0 / 443.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.291, allocations: 43.92 kB / 443.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.291, allocations: 8.234 kB / 443.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000379/0.2914, allocations: 71.78 kB / 443.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.2914, allocations: 11.94 kB / 443.6 MB, free: 11.32 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.000172/0.2916, allocations: 146.3 kB / 443.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.641e-05/0.2917, allocations: 27.8 kB / 443.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000442/0.2921, allocations: 214.8 kB / 444 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2921, allocations: 7.938 kB / 444 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.2922, allocations: 4 kB / 444 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.2922, allocations: 0 / 444 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009023/0.2931, allocations: 0.5959 MB / 444.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2931, allocations: 0 / 444.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001607/0.2932, allocations: 27.98 kB / 444.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.279e-05/0.2932, allocations: 4 kB / 444.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/0.2933, allocations: 4 kB / 444.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.2933, allocations: 4.031 kB / 444.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.2933, allocations: 3.938 kB / 444.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005416/0.2938, allocations: 376.5 kB / 445 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.99e-05/0.2939, allocations: 35.77 kB / 445 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.47e-05/0.2939, allocations: 8 kB / 445 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004116/0.2943, allocations: 63.92 kB / 445.1 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001846/0.2945, allocations: 75.86 kB / 445.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.2945, allocations: 8 kB / 445.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003462/0.2949, allocations: 239 kB / 445.4 MB, free: 9.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2949, allocations: 0 / 445.4 MB, free: 9.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003812/0.2952, allocations: 87.78 kB / 445.5 MB, free: 9.324 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.00018/0.2954, allocations: 107.2 kB / 445.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004038/0.2958, allocations: 174.3 kB / 445.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2958, allocations: 0 / 445.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001848/0.296, allocations: 99.88 kB / 445.9 MB, free: 8.941 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000426/0.2964, allocations: 64.67 kB / 445.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.298, allocations: 0.745 MB / 446.7 MB, free: 8.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005162/0.2986, allocations: 0.7753 MB / 447.4 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.2987, allocations: 31.44 kB / 447.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2987, allocations: 0 / 447.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of Templates: time 0.008036/0.3067, allocations: 4.356 MB / 451.8 MB, free: 2.938 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.620844173943624]