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) 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) 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=144000,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=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001161/0.001161, allocations: 113.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001225/0.001225, allocations: 208.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.165/2.165, allocations: 227.4 MB / 247.6 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002206/0.002206, allocations: 60.14 kB / 359.4 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.404, allocations: 50.54 MB / 409.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00701/0.411, allocations: 2.969 MB / 412.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.4133, allocations: 0.7478 MB / 413.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002867/0.4136, allocations: 8 kB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003601/0.4141, allocations: 67.36 kB / 413.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004494/0.4145, allocations: 99.11 kB / 413.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005127/0.4151, allocations: 111.8 kB / 413.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007034/0.4158, allocations: 414.3 kB / 414.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005159/0.4163, allocations: 205.8 kB / 414.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002865/0.4166, allocations: 159.4 kB / 414.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003856/0.417, allocations: 183.2 kB / 414.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.66e-05/0.4171, allocations: 40 kB / 414.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001804/0.4173, allocations: 59.92 kB / 414.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002219/0.4176, allocations: 107.7 kB / 415.1 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002908/0.4179, allocations: 203 kB / 415.3 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008665/0.4188, allocations: 0.4916 MB / 415.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4188, allocations: 0 / 415.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.4188, allocations: 0 / 415.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.732e-05/0.4189, allocations: 0 / 415.7 MB, free: 11.82 MB / 334.1 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.002709/0.4216, allocations: 0.7873 MB / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.4216, allocations: 8.031 kB / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.4218, allocations: 40.47 kB / 416.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007802/0.4226, allocations: 346.6 kB / 416.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.773e-05/0.4227, allocations: 25.03 kB / 416.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.318e-05/0.4228, allocations: 28.38 kB / 417 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009601/0.4237, allocations: 354.2 kB / 417.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.4238, allocations: 0 / 417.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.054e-05/0.4238, allocations: 16 kB / 417.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.4239, allocations: 11.98 kB / 417.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007966/0.4247, allocations: 242.4 kB / 417.6 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003062/0.4277, allocations: 1.296 MB / 418.9 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006435/0.4284, allocations: 182.4 kB / 419.1 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004375/0.4289, allocations: 124.7 kB / 419.2 MB, free: 8.195 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.829e-05/0.4289, allocations: 8 kB / 419.2 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/0.429, allocations: 30.56 kB / 419.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 2.315e-06/0.429, allocations: 0 / 419.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008209/0.4298, allocations: 237.2 kB / 419.4 MB, free: 7.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.4299, allocations: 51.69 kB / 419.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005959/0.4305, allocations: 319 kB / 419.8 MB, free: 7.527 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.227e-05/0.4306, allocations: 29.7 kB / 419.8 MB, free: 7.492 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.4308, allocations: 208 kB / 420 MB, free: 7.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.725e-05/0.4309, allocations: 63.17 kB / 420.1 MB, free: 7.223 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.431, allocations: 45.66 kB / 420.1 MB, free: 7.172 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4312, allocations: 338.8 kB / 420.5 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/0.4315, allocations: 71.95 kB / 420.5 MB, free: 6.762 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002847/0.4318, allocations: 139.6 kB / 420.7 MB, free: 6.598 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003993/0.4322, allocations: 170.3 kB / 420.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.4322, allocations: 4 kB / 420.9 MB, free: 6.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007511/0.433, allocations: 245 kB / 421.1 MB, free: 6.156 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.433, allocations: 4 kB / 421.1 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.4331, allocations: 4 kB / 421.1 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.4331, allocations: 4 kB / 421.1 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003415/0.4334, allocations: 44.17 kB / 421.1 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.4335, allocations: 7.984 kB / 421.2 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007305/0.4342, allocations: 59.78 kB / 421.2 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.76e-05/0.4343, allocations: 12 kB / 421.2 MB, free: 6.023 MB / 334.1 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.0002586/0.4346, allocations: 153.7 kB / 421.4 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.883e-05/0.4347, allocations: 35.66 kB / 421.4 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006827/0.4354, allocations: 199.8 kB / 421.6 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.4354, allocations: 7.984 kB / 421.6 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.4354, allocations: 0 / 421.6 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.4355, allocations: 0 / 421.6 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.4368, allocations: 0.6306 MB / 422.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4368, allocations: 0 / 422.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003009/0.4372, allocations: 31.92 kB / 422.3 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.061e-05/0.4372, allocations: 4.031 kB / 422.3 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.4372, allocations: 4 kB / 422.3 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.4373, allocations: 0 / 422.3 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/0.4373, allocations: 4 kB / 422.3 MB, free: 4.887 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008781/0.4382, allocations: 387.4 kB / 422.7 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.4383, allocations: 104.8 kB / 422.8 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.645e-05/0.4384, allocations: 11.94 kB / 422.8 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007455/0.4392, allocations: 51.98 kB / 422.8 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003217/0.4395, allocations: 83.81 kB / 422.9 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.168e-05/0.4396, allocations: 4 kB / 422.9 MB, free: 4.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004309/0.44, allocations: 237.9 kB / 423.1 MB, free: 3.988 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.44, allocations: 0 / 423.1 MB, free: 3.988 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006718/0.4407, allocations: 83.69 kB / 423.2 MB, free: 3.906 MB / 334.1 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.000212/0.4409, allocations: 111.2 kB / 423.3 MB, free: 3.785 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006453/0.4416, allocations: 183.8 kB / 423.5 MB, free: 3.605 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.4416, allocations: 0 / 423.5 MB, free: 3.605 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.442, allocations: 107.9 kB / 423.6 MB, free: 3.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007313/0.4427, allocations: 45.44 kB / 423.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/0.4451, allocations: 0.7486 MB / 424.4 MB, free: 2.668 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.4456, allocations: 0.7753 MB / 425.2 MB, free: 1.863 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.4459, allocations: 27.44 kB / 425.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4459, allocations: 0 / 425.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of Templates: time 0.01215/0.458, allocations: 4.384 MB / 429.6 MB, free: 13.48 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (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) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches