Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001644/0.001644, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 229.5 MB / 247.7 MB, free: 6.297 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007615/0.0007615, allocations: 96.47 kB / 299.8 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000232/0.000232, allocations: 4 kB / 360.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2164, allocations: 51.41 MB / 412 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.004714/0.2212, allocations: 5.08 MB / 417.1 MB, free: 20.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003791/0.225, allocations: 3.127 MB / 420.3 MB, free: 17.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005315/0.2256, allocations: 23.88 kB / 420.3 MB, free: 17.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001276/0.2269, allocations: 0.7122 MB / 421 MB, free: 16.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008102/0.2277, allocations: 0.4937 MB / 421.5 MB, free: 16.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.2288, allocations: 467.4 kB / 421.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001248/0.23, allocations: 1.531 MB / 423.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006081/0.2306, allocations: 0.5162 MB / 424 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004728/0.2311, allocations: 0.4901 MB / 424.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005169/0.2316, allocations: 0.6534 MB / 425.1 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001025/0.2318, allocations: 60 kB / 425.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002952/0.2321, allocations: 127.9 kB / 425.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003232/0.2324, allocations: 0.5568 MB / 425.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000527/0.2329, allocations: 0.8401 MB / 426.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001369/0.2343, allocations: 2.339 MB / 429 MB, free: 8.688 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2343, allocations: 0 / 429 MB, free: 8.688 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2343, allocations: 0 / 429 MB, free: 8.688 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.1e-05/0.2344, allocations: 0 / 429 MB, free: 8.688 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.003356/0.2377, allocations: 2.323 MB / 431.4 MB, free: 6.301 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.2378, allocations: 8.031 kB / 431.4 MB, free: 6.293 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002445/0.238, allocations: 226.1 kB / 431.6 MB, free: 6.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001709/0.2397, allocations: 1.523 MB / 433.1 MB, free: 4.477 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004532/0.2402, allocations: 196.1 kB / 433.3 MB, free: 4.277 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.925e-05/0.2403, allocations: 87.94 kB / 433.4 MB, free: 4.191 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.2419, allocations: 1.116 MB / 434.5 MB, free: 3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.2419, allocations: 0 / 434.5 MB, free: 3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.431e-05/0.242, allocations: 40 kB / 434.6 MB, free: 2.961 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.242, allocations: 23.98 kB / 434.6 MB, free: 2.938 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.2432, allocations: 0.7455 MB / 435.3 MB, free: 2.191 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006083/0.2493, allocations: 4.72 MB / 440 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.2509, allocations: 0.9957 MB / 441 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008445/0.2517, allocations: 421.2 kB / 441.4 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.436e-05/0.2518, allocations: 7.984 kB / 441.5 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/0.2518, allocations: 42.56 kB / 441.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 2.555e-06/0.2518, allocations: 4 kB / 441.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.002127/0.254, allocations: 0.9019 MB / 442.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002392/0.2542, allocations: 427.2 kB / 442.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003553/0.2578, allocations: 2.748 MB / 445.6 MB, free: 7.512 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.704e-05/0.2579, allocations: 33.7 kB / 445.6 MB, free: 7.473 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000715/0.2586, allocations: 0.8824 MB / 446.5 MB, free: 6.582 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.2588, allocations: 157.8 kB / 446.6 MB, free: 6.426 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.414e-05/0.2588, allocations: 16 kB / 446.7 MB, free: 6.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.259, allocations: 330 kB / 447 MB, free: 6.082 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006556/0.2596, allocations: 285.1 kB / 447.3 MB, free: 5.805 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008514/0.2605, allocations: 0.5597 MB / 447.8 MB, free: 5.125 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.2618, allocations: 0.6679 MB / 448.5 MB, free: 4.379 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.2618, allocations: 0 / 448.5 MB, free: 4.379 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001896/0.2637, allocations: 0.9157 MB / 449.4 MB, free: 3.457 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.2637, allocations: 8 kB / 449.4 MB, free: 3.449 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/0.2637, allocations: 4 kB / 449.4 MB, free: 3.445 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.2638, allocations: 8 kB / 449.4 MB, free: 3.438 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006596/0.2644, allocations: 171.8 kB / 449.6 MB, free: 3.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.916e-05/0.2645, allocations: 19.92 kB / 449.6 MB, free: 3.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.2655, allocations: 211.2 kB / 449.8 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-05/0.2656, allocations: 24 kB / 449.8 MB, free: 3.02 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on1,pulseSeries.on2,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0008119/0.2664, allocations: 0.557 MB / 450.4 MB, free: 2.453 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002317/0.2666, allocations: 181.8 kB / 450.6 MB, free: 2.273 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/0.2683, allocations: 0.7586 MB / 451.3 MB, free: 1.504 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.2683, allocations: 4 kB / 451.3 MB, free: 1.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2683, allocations: 3.938 kB / 451.3 MB, free: 1.496 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.2683, allocations: 7.922 kB / 451.3 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003537/0.2718, allocations: 2.191 MB / 453.5 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.2719, allocations: 8.094 kB / 453.5 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005425/0.2724, allocations: 131.8 kB / 453.7 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.2724, allocations: 0 / 453.7 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.2725, allocations: 12 kB / 453.7 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.2725, allocations: 0 / 453.7 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.2725, allocations: 7.984 kB / 453.7 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.2745, allocations: 1.139 MB / 454.8 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006928/0.2752, allocations: 414.6 kB / 455.2 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001805/0.2754, allocations: 23.98 kB / 455.3 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.2765, allocations: 199.7 kB / 455.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003163/0.2768, allocations: 151.7 kB / 455.6 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.756e-05/0.2769, allocations: 31.92 kB / 455.6 MB, free: 13.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002686/0.2796, allocations: 1.944 MB / 457.6 MB, free: 11.11 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2796, allocations: 0 / 457.6 MB, free: 11.11 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000945/0.2805, allocations: 307.3 kB / 457.9 MB, free: 10.8 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.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 (44): * Single equations (assignments): 44 * 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.001091/0.2816, allocations: 0.5383 MB / 458.4 MB, free: 10.4 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.2831, allocations: 0.6428 MB / 459.1 MB, free: 9.754 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.2831, allocations: 0 / 459.1 MB, free: 9.754 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007673/0.2839, allocations: 384.7 kB / 459.4 MB, free: 9.379 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.2854, allocations: 296.9 kB / 459.7 MB, free: 9.086 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008121/0.2935, allocations: 4.196 MB / 463.9 MB, free: 4.852 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001655/0.2952, allocations: 1.437 MB / 465.4 MB, free: 3.387 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001363/0.2965, allocations: 303 kB / 465.7 MB, free: 3.086 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000494/0.2971, allocations: 103.4 kB / 465.8 MB, free: 2.984 MB / 330.7 MB Notification: Performance of SimCode: time 6.92e-07/0.2971, allocations: 0 / 465.8 MB, free: 2.984 MB / 330.7 MB Notification: Performance of Templates: time 0.03678/0.3339, allocations: 19.22 MB / 485 MB, free: 15.87 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches