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.001005/0.001005, allocations: 195.9 kB / 17.38 MB, free: 4.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 226.5 MB / 244.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007643/0.0007644, allocations: 104.4 kB / 296.8 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002148/0.0002149, allocations: 8 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.1991, allocations: 51.28 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002377/0.2015, allocations: 2.533 MB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.2028, allocations: 0.707 MB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002623/0.203, allocations: 8 kB / 411.3 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002256/0.2033, allocations: 47.61 kB / 411.3 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002707/0.2036, allocations: 84.89 kB / 411.4 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003036/0.2039, allocations: 69.12 kB / 411.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003776/0.2043, allocations: 390.3 kB / 411.9 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002623/0.2045, allocations: 176.9 kB / 412 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001435/0.2047, allocations: 119.5 kB / 412.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.2049, allocations: 148.6 kB / 412.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.169e-05/0.205, allocations: 16 kB / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.2051, allocations: 31.98 kB / 412.3 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.2052, allocations: 84.38 kB / 412.4 MB, free: 23.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.2053, allocations: 184.9 kB / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.2056, allocations: 391.4 kB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2056, allocations: 0 / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2056, allocations: 0 / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.2056, allocations: 4 kB / 413 MB, free: 22.72 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.001319/0.207, allocations: 0.7719 MB / 413.8 MB, free: 21.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.207, allocations: 12.03 kB / 413.8 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.31e-05/0.2071, allocations: 40.47 kB / 413.8 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003793/0.2075, allocations: 338.6 kB / 414.1 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.2075, allocations: 21.03 kB / 414.2 MB, free: 21.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.881e-05/0.2076, allocations: 36.38 kB / 414.2 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004908/0.2081, allocations: 342.2 kB / 414.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.2081, allocations: 0 / 414.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.2081, allocations: 16 kB / 414.6 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.2081, allocations: 8 kB / 414.6 MB, free: 21.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003594/0.2085, allocations: 230.5 kB / 414.8 MB, free: 20.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00151/0.21, allocations: 1.323 MB / 416.1 MB, free: 19.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003149/0.2104, allocations: 183.3 kB / 416.3 MB, free: 19.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.2106, allocations: 132.7 kB / 416.4 MB, free: 19.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.2106, allocations: 3.938 kB / 416.4 MB, free: 19.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.608e-05/0.2106, allocations: 46.5 kB / 416.5 MB, free: 19.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.383e-06/0.2106, allocations: 0 / 416.5 MB, free: 19.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004007/0.2111, allocations: 224.1 kB / 416.7 MB, free: 18.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.087e-05/0.2111, allocations: 51.41 kB / 416.7 MB, free: 18.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003062/0.2114, allocations: 319.2 kB / 417 MB, free: 18.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.2114, allocations: 25.7 kB / 417.1 MB, free: 18.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.961e-05/0.2115, allocations: 216 kB / 417.3 MB, free: 18.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.559e-05/0.2116, allocations: 59.2 kB / 417.3 MB, free: 18.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.28e-05/0.2116, allocations: 0 / 417.3 MB, free: 18.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.031e-05/0.2116, allocations: 342.8 kB / 417.7 MB, free: 17.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.2118, allocations: 67.97 kB / 417.7 MB, free: 17.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.2119, allocations: 139.5 kB / 417.9 MB, free: 17.56 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001766/0.2121, allocations: 161.8 kB / 418 MB, free: 17.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2121, allocations: 4 kB / 418 MB, free: 17.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003205/0.2124, allocations: 241 kB / 418.3 MB, free: 17.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.2124, allocations: 8 kB / 418.3 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.2124, allocations: 0 / 418.3 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.2125, allocations: 4 kB / 418.3 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/0.2126, allocations: 44.17 kB / 418.3 MB, free: 17.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.2126, allocations: 11.98 kB / 418.3 MB, free: 17.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003573/0.213, allocations: 87.69 kB / 418.4 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.213, allocations: 12 kB / 418.4 MB, free: 16.97 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.0001126/0.2132, allocations: 153.8 kB / 418.6 MB, free: 16.81 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.847e-05/0.2132, allocations: 27.66 kB / 418.6 MB, free: 16.78 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003421/0.2136, allocations: 203.7 kB / 418.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.2136, allocations: 4 kB / 418.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2136, allocations: 0 / 418.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2136, allocations: 7.938 kB / 418.8 MB, free: 16.56 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000586/0.2142, allocations: 0.6317 MB / 419.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2142, allocations: 0 / 419.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.2143, allocations: 27.92 kB / 419.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2144, allocations: 4 kB / 419.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.2144, allocations: 4 kB / 419.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.2144, allocations: 4 kB / 419.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2144, allocations: 0 / 419.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003749/0.2148, allocations: 383.1 kB / 419.9 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.206e-05/0.2148, allocations: 112.7 kB / 420 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.838e-05/0.2149, allocations: 8 kB / 420 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003978/0.2153, allocations: 75.98 kB / 420.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.2155, allocations: 75.86 kB / 420.1 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.2155, allocations: 8 kB / 420.1 MB, free: 15.15 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001788/0.2157, allocations: 241.9 kB / 420.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2157, allocations: 0 / 420.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003164/0.216, allocations: 83.69 kB / 420.5 MB, free: 14.83 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.0001171/0.2161, allocations: 106.8 kB / 420.6 MB, free: 14.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002778/0.2164, allocations: 175.8 kB / 420.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2164, allocations: 0.5 kB / 420.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.2166, allocations: 111.9 kB / 420.8 MB, free: 14.44 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000397/0.217, allocations: 47.28 kB / 420.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.2181, allocations: 0.9179 MB / 421.8 MB, free: 13.44 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000155/0.2183, allocations: 0.7833 MB / 422.6 MB, free: 12.63 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.704e-05/0.2184, allocations: 23.44 kB / 422.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2184, allocations: 0 / 422.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of Templates: time 0.004799/0.2232, allocations: 4.268 MB / 426.9 MB, free: 8.371 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