Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 103.6 kB / 21.18 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 210.9 kB / 24.48 MB, free: 3.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 258.3 MB, free: 7.805 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 55.92 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2681, allocations: 53.37 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008017/0.2761, allocations: 5.211 MB / 437.5 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005215/0.2813, allocations: 2.594 MB / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000697/0.282, allocations: 31.75 kB / 440.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001824/0.2838, allocations: 0.7464 MB / 440.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001383/0.2852, allocations: 0.5633 MB / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001398/0.2866, allocations: 0.5144 MB / 442 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002298/0.2889, allocations: 1.6 MB / 443.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007429/0.2896, allocations: 407.1 kB / 444 MB, free: 11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009286/0.2906, allocations: 0.6345 MB / 444.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001/0.2916, allocations: 0.7705 MB / 445.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001977/0.2918, allocations: 136 kB / 445.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004305/0.2922, allocations: 204 kB / 445.7 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006533/0.2929, allocations: 0.6582 MB / 446.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008756/0.2937, allocations: 0.7185 MB / 447.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002877/0.2966, allocations: 2.525 MB / 449.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.2966, allocations: 0 / 449.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.2966, allocations: 0 / 449.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.756e-05/0.2967, allocations: 0 / 449.6 MB, free: 5.34 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.005717/0.3024, allocations: 2.584 MB / 452.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.3024, allocations: 8.031 kB / 452.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005161/0.3029, allocations: 235.4 kB / 452.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002992/0.3059, allocations: 1.499 MB / 453.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.3061, allocations: 147.7 kB / 454.1 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/0.3063, allocations: 83.94 kB / 454.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002463/0.3087, allocations: 1.714 MB / 455.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.3088, allocations: 0 / 455.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.3089, allocations: 40 kB / 455.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.489e-05/0.3089, allocations: 20 kB / 455.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.3103, allocations: 0.7182 MB / 456.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007941/0.3183, allocations: 4.048 MB / 460.7 MB, free: 9.758 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.3195, allocations: 0.5221 MB / 461.2 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007697/0.3203, allocations: 357.9 kB / 461.6 MB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.674e-05/0.3204, allocations: 8 kB / 461.6 MB, free: 8.863 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.628e-05/0.3204, allocations: 42.56 kB / 461.6 MB, free: 8.812 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.715e-06/0.3204, allocations: 0 / 461.6 MB, free: 8.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001967/0.3224, allocations: 0.8326 MB / 462.5 MB, free: 7.973 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002689/0.3226, allocations: 419.2 kB / 462.9 MB, free: 7.465 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003956/0.3266, allocations: 2.723 MB / 465.6 MB, free: 4.695 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.997e-05/0.3267, allocations: 37.7 kB / 465.6 MB, free: 4.652 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009672/0.3277, allocations: 0.9144 MB / 466.6 MB, free: 3.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/0.3278, allocations: 166.6 kB / 466.7 MB, free: 3.566 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002232/0.3281, allocations: 118.3 kB / 466.8 MB, free: 3.445 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.3282, allocations: 334 kB / 467.2 MB, free: 3.113 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005668/0.3288, allocations: 249.2 kB / 467.4 MB, free: 2.871 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009854/0.3298, allocations: 0.8877 MB / 468.3 MB, free: 1.777 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.3309, allocations: 0.6133 MB / 468.9 MB, free: 1.086 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3309, allocations: 8 kB / 468.9 MB, free: 1.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001942/0.3329, allocations: 0.8505 MB / 469.8 MB, free: 224 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.3329, allocations: 8 kB / 469.8 MB, free: 216 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.3329, allocations: 12.03 kB / 469.8 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.611e-05/0.3329, allocations: 8 kB / 469.8 MB, free: 196 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000627/0.3336, allocations: 159.8 kB / 469.9 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.12e-05/0.3336, allocations: 11.94 kB / 470 MB, free: 24 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/0.3347, allocations: 163.5 kB / 470.1 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.827e-05/0.3348, allocations: 24 kB / 470.1 MB, free: 15.84 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.0008947/0.3357, allocations: 0.5561 MB / 470.7 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003153/0.336, allocations: 186.8 kB / 470.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001455/0.3375, allocations: 0.6997 MB / 471.6 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.3375, allocations: 11.92 kB / 471.6 MB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.3375, allocations: 4 kB / 471.6 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3375, allocations: 3.938 kB / 471.6 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003564/0.341, allocations: 1.792 MB / 473.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.341, allocations: 4 kB / 473.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005332/0.3416, allocations: 103.9 kB / 473.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.696e-06/0.3416, allocations: 4 kB / 473.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.62e-05/0.3416, allocations: 15.98 kB / 473.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.3416, allocations: 4 kB / 473.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3416, allocations: 0 / 473.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/0.3437, allocations: 1.052 MB / 474.6 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009829/0.3446, allocations: 338.6 kB / 474.9 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.3448, allocations: 8 kB / 474.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.3458, allocations: 143.8 kB / 475 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003173/0.3462, allocations: 151.7 kB / 475.2 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.413e-05/0.3462, allocations: 15.98 kB / 475.2 MB, free: 10.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002816/0.349, allocations: 1.923 MB / 477.1 MB, free: 8.715 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.349, allocations: 4 kB / 477.1 MB, free: 8.711 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009822/0.35, allocations: 319.3 kB / 477.4 MB, free: 8.398 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.001926/0.3519, allocations: 0.5061 MB / 478 MB, free: 8.102 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.3533, allocations: 0.5802 MB / 478.5 MB, free: 7.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.3533, allocations: 4 kB / 478.5 MB, free: 7.516 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006757/0.3539, allocations: 328.8 kB / 478.9 MB, free: 7.195 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.3554, allocations: 293.9 kB / 479.1 MB, free: 6.914 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006233/0.3616, allocations: 3.602 MB / 482.7 MB, free: 3.258 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001019/0.3627, allocations: 0.8454 MB / 483.6 MB, free: 2.371 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005129/0.3632, allocations: 107.4 kB / 483.7 MB, free: 2.266 MB / 382.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3632, allocations: 0 / 483.7 MB, free: 2.266 MB / 382.1 MB Notification: Performance of Templates: time 0.03915/0.4023, allocations: 23.34 MB / 0.4952 GB, free: 10.99 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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.11652516599861]