Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001495/0.001494, allocations: 199.7 kB / 18.06 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 226.5 MB / 245.4 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009326/0.0009326, allocations: 94.83 kB / 297.4 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003032/0.0003032, allocations: 8 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2012, allocations: 51.28 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09259/0.2938, allocations: 82.23 MB / 490.9 MB, free: 9.367 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.2941, allocations: 75.97 kB / 491 MB, free: 9.293 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01782/0.3119, allocations: 6.419 MB / 497.4 MB, free: 2.844 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.312, allocations: 0 / 497.4 MB, free: 2.844 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.139e-05/0.312, allocations: 8 kB / 497.4 MB, free: 2.836 MB / 362.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.001627/0.3137, allocations: 0.7485 MB / 498.1 MB, free: 2.035 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3137, allocations: 15.97 kB / 498.2 MB, free: 2.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.374e-05/0.3138, allocations: 44.47 kB / 498.2 MB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005509/0.3144, allocations: 362.7 kB / 498.6 MB, free: 1.582 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.525e-05/0.3144, allocations: 32.91 kB / 498.6 MB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.693e-05/0.3145, allocations: 28.38 kB / 498.6 MB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005531/0.315, allocations: 342.5 kB / 498.9 MB, free: 1.176 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.315, allocations: 4.188 kB / 498.9 MB, free: 1.172 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.672e-05/0.3151, allocations: 15.94 kB / 499 MB, free: 1.156 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.3151, allocations: 8 kB / 499 MB, free: 1.148 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004176/0.3155, allocations: 234.5 kB / 499.2 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.3174, allocations: 1.323 MB / 0.4888 GB, free: 15.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/0.3178, allocations: 259.7 kB / 0.489 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.318, allocations: 108.8 kB / 0.4891 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.889e-05/0.318, allocations: 0 / 0.4891 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.3181, allocations: 42.48 kB / 0.4892 GB, free: 15.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=16): time 1.012e-06/0.3181, allocations: 0 / 0.4892 GB, free: 15.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.000456/0.3185, allocations: 229.5 kB / 0.4894 GB, free: 14.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.3186, allocations: 55.41 kB / 0.4895 GB, free: 14.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/0.3189, allocations: 318.9 kB / 0.4898 GB, free: 14.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.319, allocations: 33.7 kB / 0.4898 GB, free: 14.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.3191, allocations: 204 kB / 0.49 GB, free: 14.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.582e-05/0.3192, allocations: 55.2 kB / 0.49 GB, free: 14.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.401e-05/0.3192, allocations: 4 kB / 0.49 GB, free: 14.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.3193, allocations: 338.8 kB / 0.4904 GB, free: 13.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.3194, allocations: 71.89 kB / 0.4904 GB, free: 13.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.3196, allocations: 139.6 kB / 0.4906 GB, free: 13.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002193/0.3198, allocations: 167.7 kB / 0.4907 GB, free: 13.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.3198, allocations: 0 / 0.4907 GB, free: 13.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003696/0.3202, allocations: 251.9 kB / 0.491 GB, free: 13.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.3202, allocations: 4 kB / 0.491 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3203, allocations: 4 kB / 0.491 GB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.3203, allocations: 96 / 0.491 GB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.3204, allocations: 51.86 kB / 0.491 GB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.3205, allocations: 7.984 kB / 0.491 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003603/0.3208, allocations: 79.97 kB / 0.4911 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.91e-05/0.3209, allocations: 19.94 kB / 0.4911 GB, free: 12.98 MB / 378.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.on1,pulseSeries.on2,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001546/0.321, allocations: 153.8 kB / 0.4913 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.483e-05/0.3211, allocations: 31.56 kB / 0.4913 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003926/0.3215, allocations: 199 kB / 0.4915 GB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.3215, allocations: 7.938 kB / 0.4915 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3215, allocations: 0 / 0.4915 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3215, allocations: 0 / 0.4915 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007235/0.3222, allocations: 0.624 MB / 0.4921 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.3223, allocations: 3.938 kB / 0.4921 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001459/0.3224, allocations: 32.02 kB / 0.4921 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.3224, allocations: 7.984 kB / 0.4922 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.3225, allocations: 0 / 0.4922 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3225, allocations: 0 / 0.4922 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3225, allocations: 4 kB / 0.4922 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004573/0.3229, allocations: 379.8 kB / 0.4925 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.538e-05/0.323, allocations: 108.8 kB / 0.4926 GB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.951e-05/0.3231, allocations: 8.062 kB / 0.4926 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003771/0.3234, allocations: 75.92 kB / 0.4927 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/0.3236, allocations: 79.86 kB / 0.4928 GB, free: 11.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.3236, allocations: 4 kB / 0.4928 GB, free: 11.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002254/0.3239, allocations: 234 kB / 0.493 GB, free: 10.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3239, allocations: 0 / 0.493 GB, free: 10.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000333/0.3242, allocations: 79.75 kB / 0.4931 GB, free: 10.86 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001538/0.3244, allocations: 127.1 kB / 0.4932 GB, free: 10.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003027/0.3247, allocations: 171.8 kB / 0.4934 GB, free: 10.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3247, allocations: 4 kB / 0.4934 GB, free: 10.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.3249, allocations: 107.1 kB / 0.4935 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004277/0.3253, allocations: 55.83 kB / 0.4935 GB, free: 10.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.3267, allocations: 0.9371 MB / 0.4944 GB, free: 9.422 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.327, allocations: 0.7716 MB / 0.4952 GB, free: 8.625 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.3271, allocations: 27.42 kB / 0.4952 GB, free: 8.598 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3271, allocations: 0 / 0.4952 GB, free: 8.598 MB / 378.7 MB Notification: Performance of Templates: time 0.006238/0.3333, allocations: 4.273 MB / 0.4994 GB, free: 4.359 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches