Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 103.6 kB / 20.43 MB, free: 1.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 187.5 kB / 23.71 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 47.86 kB / 370.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3408, allocations: 52.17 MB / 423 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008098/0.3489, allocations: 5.185 MB / 428.2 MB, free: 9.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004617/0.3535, allocations: 2.438 MB / 430.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00047/0.354, allocations: 27.81 kB / 430.7 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001732/0.3558, allocations: 0.7424 MB / 431.4 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009755/0.3567, allocations: 0.5205 MB / 432 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.3578, allocations: 0.5092 MB / 432.5 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001778/0.3596, allocations: 1.586 MB / 434.1 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006485/0.3603, allocations: 387 kB / 434.4 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006957/0.361, allocations: 0.6268 MB / 435.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008982/0.3619, allocations: 0.7041 MB / 435.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000202/0.3621, allocations: 135.9 kB / 435.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004514/0.3625, allocations: 212 kB / 436.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006546/0.3632, allocations: 0.6465 MB / 436.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007235/0.3639, allocations: 0.7186 MB / 437.5 MB, free: 12 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003017/0.3669, allocations: 2.513 MB / 440 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.3669, allocations: 0 / 440 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.3669, allocations: 4 kB / 440 MB, free: 13.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.874e-05/0.3669, allocations: 0 / 440 MB, free: 13.48 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.005679/0.3726, allocations: 2.556 MB / 442.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.741e-05/0.3727, allocations: 16.03 kB / 442.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004149/0.3731, allocations: 235.4 kB / 442.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003006/0.3761, allocations: 1.494 MB / 444.3 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/0.3763, allocations: 143.7 kB / 444.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.3764, allocations: 87.94 kB / 444.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002628/0.379, allocations: 1.703 MB / 446.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.3791, allocations: 0 / 446.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-05/0.3792, allocations: 44 kB / 446.3 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.558e-05/0.3792, allocations: 20 kB / 446.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001462/0.3807, allocations: 0.7143 MB / 447 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007163/0.3878, allocations: 4.052 MB / 451 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.3891, allocations: 0.5276 MB / 451.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008/0.3899, allocations: 362 kB / 451.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.653e-05/0.3899, allocations: 4 kB / 451.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.114e-05/0.39, allocations: 46.56 kB / 452 MB, free: 1.012 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.775e-06/0.39, allocations: 0 / 452 MB, free: 1.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001881/0.3919, allocations: 0.821 MB / 452.8 MB, free: 188 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002789/0.3921, allocations: 419.2 kB / 453.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003985/0.3961, allocations: 2.702 MB / 455.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.761e-05/0.3962, allocations: 37.7 kB / 455.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009181/0.3971, allocations: 0.887 MB / 456.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.3973, allocations: 166.6 kB / 457 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002533/0.3976, allocations: 126.3 kB / 457.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.3977, allocations: 334 kB / 457.4 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005593/0.3983, allocations: 249.2 kB / 457.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.3994, allocations: 0.8916 MB / 458.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.4005, allocations: 0.6133 MB / 459.2 MB, free: 9.332 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/0.4006, allocations: 4 kB / 459.2 MB, free: 9.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001733/0.4023, allocations: 0.8578 MB / 460 MB, free: 8.461 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.4023, allocations: 4 kB / 460.1 MB, free: 8.457 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.4023, allocations: 8.469 kB / 460.1 MB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.57e-05/0.4024, allocations: 12 kB / 460.1 MB, free: 8.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006239/0.403, allocations: 155.8 kB / 460.2 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.274e-05/0.403, allocations: 15.88 kB / 460.2 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.404, allocations: 163.3 kB / 460.4 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.638e-05/0.4041, allocations: 28 kB / 460.4 MB, free: 8.082 MB / 366.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.0008681/0.405, allocations: 0.5483 MB / 461 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003157/0.4053, allocations: 182.8 kB / 461.2 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001501/0.4068, allocations: 0.6919 MB / 461.8 MB, free: 6.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.4068, allocations: 4 kB / 461.8 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.4068, allocations: 3.984 kB / 461.9 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4068, allocations: 3.938 kB / 461.9 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003534/0.4103, allocations: 1.776 MB / 463.6 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.4103, allocations: 8.016 kB / 463.6 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005056/0.4108, allocations: 107.8 kB / 463.7 MB, free: 4.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.016e-05/0.4109, allocations: 7.984 kB / 463.8 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-05/0.4109, allocations: 12 kB / 463.8 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.4109, allocations: 8 kB / 463.8 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4109, allocations: 0 / 463.8 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001905/0.4128, allocations: 1.056 MB / 464.8 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007334/0.4135, allocations: 330.7 kB / 465.2 MB, free: 3.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/0.4137, allocations: 16 kB / 465.2 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.4147, allocations: 139.8 kB / 465.3 MB, free: 3.102 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003441/0.4151, allocations: 155.7 kB / 465.5 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.983e-05/0.4151, allocations: 16 kB / 465.5 MB, free: 2.934 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002829/0.418, allocations: 1.903 MB / 467.4 MB, free: 1.008 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.418, allocations: 0 / 467.4 MB, free: 1.008 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009753/0.4189, allocations: 319.3 kB / 467.7 MB, free: 0.6953 MB / 366.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.001911/0.4208, allocations: 0.5093 MB / 468.2 MB, free: 404 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001464/0.4223, allocations: 0.5848 MB / 468.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/0.4223, allocations: 0 / 468.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000712/0.423, allocations: 331.6 kB / 469.1 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.4244, allocations: 281.5 kB / 469.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006225/0.4306, allocations: 3.51 MB / 472.9 MB, free: 11.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001038/0.4316, allocations: 0.8451 MB / 473.7 MB, free: 10.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008698/0.4325, allocations: 294.4 kB / 474 MB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.4328, allocations: 103.4 kB / 474.1 MB, free: 10.38 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4328, allocations: 0 / 474.1 MB, free: 10.38 MB / 382.1 MB Notification: Performance of Templates: time 0.0443/0.4771, allocations: 23.19 MB / 497.3 MB, free: 3.465 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.859721990302205]