Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001888/0.001888, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002429/0.002429, allocations: 213.6 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 230.5 MB / 257.4 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,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=36000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 67.89 kB / 378.2 MB, free: 2.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3055, allocations: 53.41 MB / 431.6 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008092/0.3136, allocations: 5.211 MB / 436.8 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005/0.3186, allocations: 2.593 MB / 439.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005827/0.3192, allocations: 35.81 kB / 439.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001771/0.321, allocations: 0.7424 MB / 440.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001409/0.3224, allocations: 0.5671 MB / 440.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00132/0.3237, allocations: 0.5177 MB / 441.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00216/0.3259, allocations: 1.598 MB / 442.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006777/0.3265, allocations: 387 kB / 443.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007684/0.3273, allocations: 0.6268 MB / 443.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009791/0.3283, allocations: 0.7119 MB / 444.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002212/0.3285, allocations: 136 kB / 444.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004609/0.329, allocations: 211.9 kB / 444.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006177/0.3296, allocations: 0.6504 MB / 445.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007358/0.3303, allocations: 0.7186 MB / 446.3 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002653/0.333, allocations: 2.529 MB / 448.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.333, allocations: 4 kB / 448.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.333, allocations: 0 / 448.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.58e-05/0.333, allocations: 0 / 448.8 MB, free: 5.23 MB / 350.1 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.005118/0.3381, allocations: 2.573 MB / 451.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.3382, allocations: 11.98 kB / 451.4 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003592/0.3385, allocations: 239.4 kB / 451.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002648/0.3412, allocations: 1.491 MB / 453.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001575/0.3413, allocations: 147.7 kB / 453.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.3415, allocations: 84.38 kB / 453.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/0.3438, allocations: 1.725 MB / 455.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.3438, allocations: 4 kB / 455.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.243e-05/0.3439, allocations: 39.98 kB / 455.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.552e-05/0.3439, allocations: 24 kB / 455.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001416/0.3453, allocations: 0.7182 MB / 455.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007337/0.3527, allocations: 4.041 MB / 459.9 MB, free: 9.652 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.354, allocations: 0.5146 MB / 460.5 MB, free: 9.129 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008168/0.3548, allocations: 362.2 kB / 460.8 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.169e-05/0.3548, allocations: 4 kB / 460.8 MB, free: 8.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.195e-05/0.3549, allocations: 50.5 kB / 460.9 MB, free: 8.711 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 4.799e-06/0.3549, allocations: 0 / 460.9 MB, free: 8.711 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002289/0.3572, allocations: 0.822 MB / 461.7 MB, free: 7.883 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002763/0.3575, allocations: 423.2 kB / 462.1 MB, free: 7.371 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004492/0.362, allocations: 2.723 MB / 464.8 MB, free: 4.602 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000126/0.3621, allocations: 41.7 kB / 464.9 MB, free: 4.555 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009034/0.363, allocations: 0.8988 MB / 465.8 MB, free: 3.648 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.3632, allocations: 166.6 kB / 465.9 MB, free: 3.484 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/0.3634, allocations: 122.3 kB / 466 MB, free: 3.359 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3636, allocations: 329.9 kB / 466.4 MB, free: 3.031 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005865/0.3642, allocations: 261.1 kB / 466.6 MB, free: 2.777 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/0.3652, allocations: 0.8877 MB / 467.5 MB, free: 1.684 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.3664, allocations: 0.621 MB / 468.1 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.3664, allocations: 3.938 kB / 468.1 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001931/0.3683, allocations: 0.8543 MB / 469 MB, free: 124 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/0.3683, allocations: 10.66 kB / 469 MB, free: 116 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.3684, allocations: 4 kB / 469 MB, free: 112 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.929e-05/0.3684, allocations: 8 kB / 469 MB, free: 104 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006401/0.369, allocations: 159.7 kB / 469.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.988e-05/0.369, allocations: 8 kB / 469.2 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.3701, allocations: 163.6 kB / 469.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.827e-05/0.3701, allocations: 28 kB / 469.4 MB, free: 15.75 MB / 382.1 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.on2,pulseSeries.on1,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.0008607/0.371, allocations: 0.5703 MB / 469.9 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002612/0.3713, allocations: 186.8 kB / 470.1 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001457/0.3727, allocations: 0.6948 MB / 470.8 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3727, allocations: 4 kB / 470.8 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3727, allocations: 4 kB / 470.8 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.3727, allocations: 0 / 470.8 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003298/0.376, allocations: 1.788 MB / 472.6 MB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.376, allocations: 3.938 kB / 472.6 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000494/0.3765, allocations: 107.9 kB / 472.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.3765, allocations: 0 / 472.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.3766, allocations: 16.08 kB / 472.7 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.3766, allocations: 4 kB / 472.7 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3766, allocations: 3.938 kB / 472.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/0.3785, allocations: 1.044 MB / 473.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008415/0.3793, allocations: 334.6 kB / 474.1 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/0.3795, allocations: 16 kB / 474.1 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.3805, allocations: 143.8 kB / 474.3 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003038/0.3808, allocations: 151.7 kB / 474.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.083e-05/0.3808, allocations: 24 kB / 474.4 MB, free: 10.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002731/0.3836, allocations: 1.923 MB / 476.4 MB, free: 8.625 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3836, allocations: 3.938 kB / 476.4 MB, free: 8.621 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009091/0.3845, allocations: 319.3 kB / 476.7 MB, free: 8.309 MB / 382.1 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.001958/0.3864, allocations: 0.4899 MB / 477.2 MB, free: 7.988 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001306/0.3877, allocations: 0.5723 MB / 477.7 MB, free: 7.414 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.3877, allocations: 4 kB / 477.7 MB, free: 7.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006807/0.3884, allocations: 332.7 kB / 478.1 MB, free: 7.086 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001328/0.3897, allocations: 294.2 kB / 478.3 MB, free: 6.797 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005966/0.3957, allocations: 3.523 MB / 481.9 MB, free: 3.227 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/0.3967, allocations: 0.8532 MB / 482.7 MB, free: 2.332 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008042/0.3975, allocations: 290.4 kB / 483 MB, free: 2.043 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003135/0.3978, allocations: 103.4 kB / 483.1 MB, free: 1.941 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3978, allocations: 0 / 483.1 MB, free: 1.941 MB / 382.1 MB Notification: Performance of Templates: time 0.04261/0.4405, allocations: 23.2 MB / 0.4944 GB, free: 10.93 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.997810233384371]