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.001484/0.001484, allocations: 92.27 kB / 20.96 MB, free: 3.441 MB / 18.57 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.001636/0.001636, allocations: 156.9 kB / 24.26 MB, free: 148 kB / 18.57 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.494/1.494, allocations: 177 MB / 204.5 MB, free: 5.633 MB / 186.7 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 1.453e-06/1.453e-06, allocations: 0 / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.371e-05/2.516e-05, allocations: 2.312 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004659/0.004684, allocations: 2.796 MB / 275 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.006344, allocations: 0.7205 MB / 275.7 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002383/0.006582, allocations: 7.938 kB / 275.7 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002433/0.006825, allocations: 63.36 kB / 275.8 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003665/0.007192, allocations: 119 kB / 275.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003807/0.007573, allocations: 103.9 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005991/0.008172, allocations: 430.1 kB / 276.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002992/0.008471, allocations: 134.4 kB / 276.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004797/0.008951, allocations: 247.4 kB / 276.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002696/0.00922, allocations: 135.6 kB / 276.9 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.793e-05/0.009288, allocations: 40 kB / 277 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.009419, allocations: 59.92 kB / 277 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.009586, allocations: 111.6 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.009763, allocations: 139.7 kB / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006482/0.01041, allocations: 0.4945 MB / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.01041, allocations: 4 kB / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.01041, allocations: 0 / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.01042, allocations: 0 / 277.8 MB, free: 12.23 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.001698/0.01212, allocations: 0.7233 MB / 278.5 MB, free: 11.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.01216, allocations: 11.98 kB / 278.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.0123, allocations: 68.7 kB / 278.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005209/0.01282, allocations: 292.5 kB / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/0.01285, allocations: 29.03 kB / 278.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/0.01291, allocations: 32.36 kB / 278.9 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006765/0.01359, allocations: 389.9 kB / 279.3 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.0136, allocations: 192 / 279.3 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.132e-05/0.01364, allocations: 20.31 kB / 279.3 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.01366, allocations: 11.94 kB / 279.3 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004643/0.01412, allocations: 234.5 kB / 279.5 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.016, allocations: 1.126 MB / 280.7 MB, free: 9.168 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000396/0.0164, allocations: 162.5 kB / 280.8 MB, free: 9 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002756/0.01668, allocations: 112.8 kB / 280.9 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.075e-05/0.01671, allocations: 4 kB / 280.9 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.01674, allocations: 34.56 kB / 281 MB, free: 8.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.032e-06/0.01674, allocations: 4 kB / 281 MB, free: 8.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.000537/0.01728, allocations: 237.6 kB / 281.2 MB, free: 8.598 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.089e-05/0.01733, allocations: 59.39 kB / 281.3 MB, free: 8.527 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003922/0.01772, allocations: 301.8 kB / 281.6 MB, free: 8.223 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.01776, allocations: 29.7 kB / 281.6 MB, free: 8.188 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.01794, allocations: 212.3 kB / 281.8 MB, free: 7.977 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.379e-05/0.018, allocations: 59.48 kB / 281.9 MB, free: 7.918 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.465e-05/0.0181, allocations: 45.7 kB / 281.9 MB, free: 7.867 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.01829, allocations: 330.8 kB / 282.2 MB, free: 7.535 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.01844, allocations: 75.95 kB / 282.3 MB, free: 7.461 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/0.01865, allocations: 135.6 kB / 282.4 MB, free: 7.301 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.01893, allocations: 167.6 kB / 282.6 MB, free: 7.109 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.01893, allocations: 0 / 282.6 MB, free: 7.109 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004491/0.01938, allocations: 248.4 kB / 282.8 MB, free: 6.863 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.01939, allocations: 7.938 kB / 282.9 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.0194, allocations: 4 kB / 282.9 MB, free: 6.852 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.01942, allocations: 7.938 kB / 282.9 MB, free: 6.844 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.01961, allocations: 43.97 kB / 282.9 MB, free: 6.801 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.01962, allocations: 3.938 kB / 282.9 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003891/0.02001, allocations: 79.89 kB / 283 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/0.02004, allocations: 8 kB / 283 MB, free: 6.711 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 (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.0001807/0.02022, allocations: 153.7 kB / 283.1 MB, free: 6.551 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.666e-05/0.0203, allocations: 31.84 kB / 283.2 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004313/0.02073, allocations: 194.7 kB / 283.4 MB, free: 6.324 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.02074, allocations: 3.938 kB / 283.4 MB, free: 6.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.02074, allocations: 0 / 283.4 MB, free: 6.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.02075, allocations: 3.984 kB / 283.4 MB, free: 6.316 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009413/0.02169, allocations: 0.5068 MB / 283.9 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.02169, allocations: 4.031 kB / 283.9 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001749/0.02187, allocations: 35.91 kB / 283.9 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.02187, allocations: 3.938 kB / 283.9 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.02189, allocations: 4 kB / 283.9 MB, free: 5.719 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.746e-06/0.0219, allocations: 8 kB / 283.9 MB, free: 5.711 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.0219, allocations: 3.984 kB / 283.9 MB, free: 5.707 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005699/0.02247, allocations: 372.6 kB / 284.3 MB, free: 5.324 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.263e-05/0.02253, allocations: 35.7 kB / 284.3 MB, free: 5.289 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.08e-05/0.02257, allocations: 8 kB / 284.3 MB, free: 5.281 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004222/0.023, allocations: 59.98 kB / 284.4 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.02318, allocations: 71.86 kB / 284.5 MB, free: 5.152 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.0232, allocations: 8 kB / 284.5 MB, free: 5.145 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002631/0.02346, allocations: 217.2 kB / 284.7 MB, free: 4.934 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02346, allocations: 0 / 284.7 MB, free: 4.934 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000378/0.02384, allocations: 91.72 kB / 284.8 MB, free: 4.844 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.0001719/0.02401, allocations: 103.2 kB / 284.9 MB, free: 4.734 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003692/0.02438, allocations: 175.7 kB / 285.1 MB, free: 4.562 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.02439, allocations: 4 kB / 285.1 MB, free: 4.559 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.02458, allocations: 103.9 kB / 285.2 MB, free: 4.457 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004193/0.025, allocations: 47.25 kB / 285.2 MB, free: 4.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.02646, allocations: 0.6654 MB / 285.9 MB, free: 3.719 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002077/0.02667, allocations: 172.8 kB / 286 MB, free: 3.527 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.0268, allocations: 30.3 kB / 286.1 MB, free: 3.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.703e-05/0.0269, allocations: 28.48 kB / 286.1 MB, free: 3.473 MB / 266.7 MB Notification: Performance of SimCode: time 7.61e-07/0.0269, allocations: 3.938 kB / 286.1 MB, free: 3.469 MB / 266.7 MB Notification: Performance of Templates: time 0.1261/0.1529, allocations: 4.287 MB / 290.4 MB, free: 28.25 MB / 266.7 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/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_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: 4.878230731002986]