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.001304/0.001304, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 226.6 MB / 244.3 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007468/0.0007469, allocations: 90.06 kB / 296.4 MB, free: 6.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002189/0.0002192, allocations: 8 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1957/0.196, allocations: 51.29 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002199/0.1982, allocations: 2.529 MB / 410 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008636/0.1991, allocations: 0.7027 MB / 410.7 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.1992, allocations: 8 kB / 410.7 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.1994, allocations: 43.62 kB / 410.8 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001781/0.1996, allocations: 88.83 kB / 410.9 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002251/0.1998, allocations: 72.67 kB / 410.9 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002601/0.2001, allocations: 386.3 kB / 411.3 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.2003, allocations: 152.9 kB / 411.5 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.999e-05/0.2004, allocations: 123.5 kB / 411.6 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.2006, allocations: 143.3 kB / 411.7 MB, free: 23.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.525e-05/0.2006, allocations: 23.94 kB / 411.7 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.08e-05/0.2007, allocations: 27.98 kB / 411.8 MB, free: 23.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.885e-05/0.2008, allocations: 87.64 kB / 411.9 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.12e-05/0.2009, allocations: 93.52 kB / 411.9 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002281/0.2011, allocations: 379.9 kB / 412.3 MB, free: 22.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2011, allocations: 0 / 412.3 MB, free: 22.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2011, allocations: 0 / 412.3 MB, free: 22.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.894e-06/0.2011, allocations: 0 / 412.3 MB, free: 22.96 MB / 298.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.001261/0.2024, allocations: 0.764 MB / 413.1 MB, free: 22.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.915e-05/0.2024, allocations: 12.03 kB / 413.1 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.719e-05/0.2025, allocations: 43.52 kB / 413.1 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.2028, allocations: 337.4 kB / 413.5 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.2029, allocations: 20.66 kB / 413.5 MB, free: 21.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.502e-05/0.2029, allocations: 32 kB / 413.5 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004505/0.2034, allocations: 341.8 kB / 413.9 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.2034, allocations: 3.938 kB / 413.9 MB, free: 21.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.2034, allocations: 16 kB / 413.9 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.2034, allocations: 8 kB / 413.9 MB, free: 21.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.2038, allocations: 234.5 kB / 414.1 MB, free: 21.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.2051, allocations: 1.323 MB / 415.4 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003039/0.2055, allocations: 170.5 kB / 415.6 MB, free: 19.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002039/0.2057, allocations: 140.7 kB / 415.7 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.08e-05/0.2057, allocations: 288 / 415.7 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.562e-05/0.2057, allocations: 34.56 kB / 415.8 MB, free: 19.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 9.22e-07/0.2057, allocations: 0 / 415.8 MB, free: 19.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003685/0.2061, allocations: 227 kB / 416 MB, free: 19.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.986e-05/0.2061, allocations: 59.33 kB / 416 MB, free: 19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.2064, allocations: 319 kB / 416.4 MB, free: 18.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.2064, allocations: 29.7 kB / 416.4 MB, free: 18.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.939e-05/0.2065, allocations: 212 kB / 416.6 MB, free: 18.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.222e-05/0.2065, allocations: 51.27 kB / 416.6 MB, free: 18.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.08e-05/0.2066, allocations: 0 / 416.6 MB, free: 18.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.422e-05/0.2066, allocations: 338.8 kB / 417 MB, free: 18.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.2067, allocations: 71.95 kB / 417 MB, free: 17.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.2069, allocations: 135.6 kB / 417.2 MB, free: 17.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.261e-05/0.207, allocations: 62.75 kB / 417.2 MB, free: 17.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.207, allocations: 0 / 417.2 MB, free: 17.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002952/0.2073, allocations: 249 kB / 417.5 MB, free: 17.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.2073, allocations: 4 kB / 417.5 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2073, allocations: 4 kB / 417.5 MB, free: 17.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.2073, allocations: 4 kB / 417.5 MB, free: 17.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.2075, allocations: 39.92 kB / 417.5 MB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.2075, allocations: 7.984 kB / 417.5 MB, free: 17.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.2079, allocations: 91.88 kB / 417.6 MB, free: 17.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.2079, allocations: 12 kB / 417.6 MB, free: 17.34 MB / 298.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.0001107/0.208, allocations: 157.8 kB / 417.8 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.622e-05/0.2081, allocations: 27.67 kB / 417.8 MB, free: 17.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003182/0.2084, allocations: 199.8 kB / 418 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2084, allocations: 0 / 418 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2084, allocations: 4 kB / 418 MB, free: 16.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2084, allocations: 0 / 418 MB, free: 16.94 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005691/0.209, allocations: 0.6364 MB / 418.7 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.209, allocations: 0 / 418.7 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001511/0.2092, allocations: 35.86 kB / 418.7 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.2092, allocations: 0 / 418.7 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.2092, allocations: 7.938 kB / 418.7 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2092, allocations: 0 / 418.7 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2092, allocations: 0 / 418.7 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003799/0.2096, allocations: 386.9 kB / 419.1 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.327e-05/0.2097, allocations: 112.7 kB / 419.2 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.69e-05/0.2097, allocations: 4 kB / 419.2 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003916/0.2101, allocations: 75.98 kB / 419.3 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.2103, allocations: 79.8 kB / 419.3 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.2103, allocations: 8 kB / 419.4 MB, free: 15.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001729/0.2105, allocations: 229.9 kB / 419.6 MB, free: 15.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2105, allocations: 0 / 419.6 MB, free: 15.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000308/0.2108, allocations: 87.75 kB / 419.7 MB, free: 15.21 MB / 298.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.0001294/0.2109, allocations: 103.2 kB / 419.8 MB, free: 15.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002903/0.2112, allocations: 187.7 kB / 419.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2112, allocations: 0 / 419.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.2114, allocations: 103.9 kB / 420.1 MB, free: 14.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003742/0.2118, allocations: 51.67 kB / 420.1 MB, free: 14.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.2129, allocations: 0.9178 MB / 421 MB, free: 13.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001721/0.2131, allocations: 0.7794 MB / 421.8 MB, free: 13.01 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.2132, allocations: 27.44 kB / 421.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2132, allocations: 0 / 421.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of Templates: time 0.004772/0.218, allocations: 4.284 MB / 426.1 MB, free: 8.73 MB / 298.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/jenkins/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