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.001239/0.001239, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001221/0.001221, allocations: 165 kB / 24.99 MB, free: 8.758 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 1.053/1.053, allocations: 177.1 MB / 205.3 MB, free: 5.617 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.964e-06/1.964e-06, allocations: 0 / 273 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.64e-05/2.836e-05, allocations: 2.312 kB / 273 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003776/0.003805, allocations: 2.991 MB / 276 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.005115, allocations: 0.7244 MB / 276.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.005311, allocations: 7.938 kB / 276.8 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002099/0.005521, allocations: 63.38 kB / 276.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002533/0.005774, allocations: 119 kB / 276.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.006106, allocations: 103.8 kB / 277 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000361/0.006467, allocations: 430.1 kB / 277.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002389/0.006706, allocations: 138.4 kB / 277.6 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002024/0.006908, allocations: 251.4 kB / 277.8 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.007121, allocations: 139.6 kB / 278 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.755e-05/0.007169, allocations: 43.98 kB / 278 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.007284, allocations: 59.98 kB / 278.1 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.007427, allocations: 107.6 kB / 278.2 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.007547, allocations: 139.7 kB / 278.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003796/0.007927, allocations: 318.8 kB / 278.6 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.007929, allocations: 0 / 278.6 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.007931, allocations: 0 / 278.6 MB, free: 12.22 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.007938, allocations: 0 / 278.6 MB, free: 12.22 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.0009985/0.008936, allocations: 0.7882 MB / 279.4 MB, free: 11.4 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.008977, allocations: 8.031 kB / 279.4 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.009085, allocations: 68.7 kB / 279.5 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004235/0.009508, allocations: 275.4 kB / 279.8 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.009537, allocations: 21.03 kB / 279.8 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.308e-05/0.00961, allocations: 36.38 kB / 279.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005418/0.01015, allocations: 315.1 kB / 280.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.01016, allocations: 4.188 kB / 280.1 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.878e-05/0.0102, allocations: 20.31 kB / 280.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.01022, allocations: 15.92 kB / 280.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002934/0.01051, allocations: 103.9 kB / 280.3 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001684/0.0122, allocations: 1.221 MB / 281.5 MB, free: 9.199 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.01254, allocations: 131 kB / 281.6 MB, free: 9.059 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002044/0.01274, allocations: 83.58 kB / 281.7 MB, free: 8.973 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.819e-05/0.01278, allocations: 4 kB / 281.7 MB, free: 8.969 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.01281, allocations: 33.39 kB / 281.7 MB, free: 8.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 2.044e-06/0.01281, allocations: 0 / 281.7 MB, free: 8.926 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003914/0.0132, allocations: 157.6 kB / 281.9 MB, free: 8.766 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.01324, allocations: 51.41 kB / 281.9 MB, free: 8.703 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003254/0.01357, allocations: 328.2 kB / 282.3 MB, free: 8.367 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.01359, allocations: 29.7 kB / 282.3 MB, free: 8.332 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.01375, allocations: 255.1 kB / 282.5 MB, free: 8.074 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.184e-05/0.0138, allocations: 59.48 kB / 282.6 MB, free: 8.016 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.892e-05/0.01389, allocations: 51.36 kB / 282.6 MB, free: 7.957 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004885/0.01438, allocations: 0.5079 MB / 283.2 MB, free: 7.438 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.942e-05/0.01447, allocations: 19.98 kB / 283.2 MB, free: 7.418 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.01461, allocations: 113.8 kB / 283.3 MB, free: 7.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.01482, allocations: 159.5 kB / 283.4 MB, free: 7.078 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.01482, allocations: 0 / 283.4 MB, free: 7.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003408/0.01516, allocations: 185.2 kB / 283.6 MB, free: 6.891 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.01518, allocations: 12.19 kB / 283.6 MB, free: 6.879 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.01519, allocations: 7.984 kB / 283.6 MB, free: 6.871 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.01521, allocations: 7.938 kB / 283.6 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.01538, allocations: 39.98 kB / 283.7 MB, free: 6.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.01539, allocations: 3.938 kB / 283.7 MB, free: 6.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/0.0156, allocations: 47.84 kB / 283.7 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.975e-05/0.01563, allocations: 12 kB / 283.8 MB, free: 6.762 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.0001367/0.01577, allocations: 172.5 kB / 283.9 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.539e-05/0.01583, allocations: 31.86 kB / 284 MB, free: 6.551 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003301/0.01616, allocations: 139.3 kB / 284.1 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.01617, allocations: 7.938 kB / 284.1 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.01617, allocations: 0 / 284.1 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.01618, allocations: 0 / 284.1 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006727/0.01685, allocations: 0.5127 MB / 284.6 MB, free: 5.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.01685, allocations: 0 / 284.6 MB, free: 5.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000139/0.01699, allocations: 35.92 kB / 284.6 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.017, allocations: 3.938 kB / 284.6 MB, free: 5.801 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.01701, allocations: 4 kB / 284.6 MB, free: 5.797 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.01702, allocations: 4.031 kB / 284.7 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.01702, allocations: 3.938 kB / 284.7 MB, free: 5.789 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003973/0.01742, allocations: 315.8 kB / 285 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.055e-05/0.01747, allocations: 35.78 kB / 285 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.079e-05/0.01751, allocations: 7.984 kB / 285 MB, free: 5.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.01773, allocations: 35.97 kB / 285 MB, free: 5.379 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.01794, allocations: 99.81 kB / 285.1 MB, free: 5.281 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.01796, allocations: 12.03 kB / 285.2 MB, free: 5.27 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002082/0.01817, allocations: 225.1 kB / 285.4 MB, free: 5.047 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01817, allocations: 0 / 285.4 MB, free: 5.047 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004045/0.01857, allocations: 87.72 kB / 285.5 MB, free: 4.961 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.0001999/0.01877, allocations: 103.2 kB / 285.6 MB, free: 4.852 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002797/0.01905, allocations: 111.8 kB / 285.7 MB, free: 4.742 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.01906, allocations: 0 / 285.7 MB, free: 4.742 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.01916, allocations: 55.91 kB / 285.7 MB, free: 4.688 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004221/0.01958, allocations: 51.73 kB / 285.8 MB, free: 4.641 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.02095, allocations: 0.6068 MB / 286.4 MB, free: 4.004 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.633e-05/0.02102, allocations: 84.31 kB / 286.5 MB, free: 3.902 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.02117, allocations: 30.27 kB / 286.5 MB, free: 3.871 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.971e-05/0.02127, allocations: 32.5 kB / 286.5 MB, free: 3.84 MB / 266.7 MB Notification: Performance of SimCode: time 1.222e-06/0.02127, allocations: 0 / 286.5 MB, free: 3.84 MB / 266.7 MB Notification: Performance of Templates: time 0.1222/0.1434, allocations: 4.299 MB / 290.8 MB, free: 28.54 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: 3.3399777580052614]