Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.008318/0.008318, allocations: 106.4 kB / 21.98 MB, free: 5.207 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.001569/0.001569, allocations: 212.8 kB / 25.29 MB, free: 3.215 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.492/1.492, allocations: 230.6 MB / 259 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 64.55 kB / 379.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2659, allocations: 53.37 MB / 433.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.00773/0.2736, allocations: 5.911 MB / 439.1 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005289/0.2789, allocations: 2.757 MB / 441.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006163/0.2795, allocations: 27.81 kB / 441.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001807/0.2813, allocations: 0.7774 MB / 442.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001414/0.2827, allocations: 0.5672 MB / 443.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.2841, allocations: 0.5177 MB / 443.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001962/0.2861, allocations: 1.602 MB / 445.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006699/0.2867, allocations: 403.1 kB / 445.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000766/0.2875, allocations: 0.6306 MB / 446.3 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009442/0.2884, allocations: 0.7744 MB / 447.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001845/0.2886, allocations: 132 kB / 447.2 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004038/0.289, allocations: 219.9 kB / 447.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005882/0.2896, allocations: 0.6427 MB / 448.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001129/0.2907, allocations: 0.9321 MB / 449 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00392/0.2947, allocations: 2.498 MB / 451.5 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2947, allocations: 3.938 kB / 451.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.2947, allocations: 0 / 451.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.155e-05/0.2947, allocations: 0 / 451.5 MB, free: 4.492 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.007425/0.3021, allocations: 2.577 MB / 454.1 MB, free: 1.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.095e-05/0.3022, allocations: 8.031 kB / 454.1 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005951/0.3028, allocations: 235.5 kB / 454.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003792/0.3066, allocations: 1.502 MB / 455.9 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.3068, allocations: 100.3 kB / 456 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001972/0.307, allocations: 83.94 kB / 456 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002855/0.3098, allocations: 1.108 MB / 457.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.025e-05/0.3099, allocations: 7.938 kB / 457.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.31, allocations: 40 kB / 457.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.283e-05/0.31, allocations: 20 kB / 457.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002086/0.3121, allocations: 0.7182 MB / 457.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0106/0.3227, allocations: 4.534 MB / 462.5 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001749/0.3244, allocations: 0.5253 MB / 463 MB, free: 8.684 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001133/0.3256, allocations: 365.9 kB / 463.3 MB, free: 8.324 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.335e-05/0.3256, allocations: 4 kB / 463.3 MB, free: 8.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.964e-05/0.3257, allocations: 42.56 kB / 463.4 MB, free: 8.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 3.316e-06/0.3257, allocations: 0 / 463.4 MB, free: 8.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002898/0.3286, allocations: 0.8287 MB / 464.2 MB, free: 7.434 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003058/0.3289, allocations: 427.2 kB / 464.6 MB, free: 6.918 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005983/0.3349, allocations: 2.764 MB / 467.4 MB, free: 4.113 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000159/0.3351, allocations: 37.7 kB / 467.4 MB, free: 4.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/0.3363, allocations: 0.8952 MB / 468.3 MB, free: 3.168 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002515/0.3365, allocations: 162.6 kB / 468.5 MB, free: 3.008 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003218/0.3368, allocations: 130.2 kB / 468.6 MB, free: 2.875 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.337, allocations: 330 kB / 468.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008777/0.3379, allocations: 257.2 kB / 469.2 MB, free: 2.297 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.3391, allocations: 0.5285 MB / 469.7 MB, free: 1.648 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001621/0.3407, allocations: 0.621 MB / 470.3 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.3407, allocations: 0 / 470.3 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002782/0.3435, allocations: 0.8619 MB / 471.2 MB, free: 80 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.3435, allocations: 8 kB / 471.2 MB, free: 72 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.3436, allocations: 4 kB / 471.2 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.829e-05/0.3436, allocations: 8 kB / 471.2 MB, free: 60 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009166/0.3445, allocations: 160.1 kB / 471.4 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.825e-05/0.3445, allocations: 19.86 kB / 471.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001974/0.3465, allocations: 159.4 kB / 471.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.186e-05/0.3466, allocations: 32 kB / 471.6 MB, free: 15.7 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.001509/0.3481, allocations: 0.5638 MB / 472.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006505/0.3488, allocations: 186.8 kB / 472.3 MB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002153/0.3509, allocations: 0.6963 MB / 473 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.517e-06/0.3509, allocations: 4 kB / 473 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.3509, allocations: 3.938 kB / 473 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.351, allocations: 3.984 kB / 473 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005146/0.3561, allocations: 2.101 MB / 475.1 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3561, allocations: 0 / 475.1 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007109/0.3568, allocations: 111.9 kB / 475.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.3568, allocations: 0 / 475.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.847e-05/0.3569, allocations: 20 kB / 475.3 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.3569, allocations: 3.938 kB / 475.3 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3569, allocations: 8.031 kB / 475.3 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.3597, allocations: 1.052 MB / 476.3 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008089/0.3605, allocations: 346.6 kB / 476.7 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001746/0.3607, allocations: 16 kB / 476.7 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.3619, allocations: 135.8 kB / 476.8 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004888/0.3624, allocations: 155.7 kB / 477 MB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.147e-05/0.3625, allocations: 19.94 kB / 477 MB, free: 10.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002838/0.3653, allocations: 1.964 MB / 479 MB, free: 8.188 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3653, allocations: 0 / 479 MB, free: 8.188 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009958/0.3663, allocations: 319.4 kB / 479.3 MB, free: 7.875 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.001726/0.3681, allocations: 477.5 kB / 479.7 MB, free: 7.586 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.3693, allocations: 0.577 MB / 480.3 MB, free: 7.008 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.3694, allocations: 4 kB / 480.3 MB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006617/0.37, allocations: 331.6 kB / 480.6 MB, free: 6.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/0.3714, allocations: 313.7 kB / 480.9 MB, free: 6.375 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007054/0.3784, allocations: 3.621 MB / 484.6 MB, free: 2.699 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001247/0.3797, allocations: 1.429 MB / 486 MB, free: 1.238 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006154/0.3803, allocations: 111.4 kB / 486.1 MB, free: 1.129 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3803, allocations: 0 / 486.1 MB, free: 1.129 MB / 382.1 MB Notification: Performance of Templates: time 0.04028/0.4206, allocations: 23.26 MB / 0.4974 GB, free: 9.961 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 10.335821510059759]