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.001695/0.001695, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001992/0.001992, allocations: 185.8 kB / 24.45 MB, free: 3.961 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.436/1.436, allocations: 225.7 MB / 253.3 MB, free: 12.8 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.001641/0.001641, allocations: 43.94 kB / 371.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2402, allocations: 52.18 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007288/0.2474, allocations: 5.173 MB / 429 MB, free: 9.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004287/0.2517, allocations: 2.45 MB / 431.4 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005288/0.2523, allocations: 27.81 kB / 431.5 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001628/0.2539, allocations: 0.7311 MB / 432.2 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001035/0.2549, allocations: 0.5166 MB / 432.7 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.2561, allocations: 0.5175 MB / 433.2 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001901/0.258, allocations: 1.598 MB / 434.8 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006263/0.2586, allocations: 378.1 kB / 435.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007637/0.2594, allocations: 0.6307 MB / 435.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008894/0.2602, allocations: 0.708 MB / 436.5 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002033/0.2605, allocations: 132 kB / 436.7 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004064/0.2609, allocations: 208 kB / 436.9 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005816/0.2614, allocations: 0.6465 MB / 437.5 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007274/0.2622, allocations: 0.7186 MB / 438.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002512/0.2647, allocations: 2.517 MB / 440.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.2647, allocations: 0 / 440.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2647, allocations: 0 / 440.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.213e-05/0.2647, allocations: 0 / 440.7 MB, free: 13.45 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.004993/0.2697, allocations: 2.557 MB / 443.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.2697, allocations: 8.031 kB / 443.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003489/0.2701, allocations: 235.4 kB / 443.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002581/0.2727, allocations: 1.49 MB / 445 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/0.2728, allocations: 155.6 kB / 445.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.273, allocations: 91.92 kB / 445.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002298/0.2753, allocations: 1.699 MB / 447 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.868e-05/0.2753, allocations: 4 kB / 447 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.86e-05/0.2754, allocations: 36 kB / 447 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.841e-05/0.2754, allocations: 24 kB / 447 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001471/0.2769, allocations: 0.7221 MB / 447.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006877/0.2838, allocations: 4.032 MB / 451.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.285, allocations: 0.5315 MB / 452.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007924/0.2858, allocations: 354 kB / 452.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.929e-05/0.2858, allocations: 8 kB / 452.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.135e-05/0.2858, allocations: 42.56 kB / 452.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.544e-06/0.2858, allocations: 3.938 kB / 452.7 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001861/0.2877, allocations: 0.8249 MB / 453.5 MB, free: 156 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002648/0.288, allocations: 419.2 kB / 454 MB, free: 15.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003695/0.2917, allocations: 2.706 MB / 456.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.525e-05/0.2917, allocations: 33.7 kB / 456.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008079/0.2925, allocations: 0.8909 MB / 457.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.2927, allocations: 170.6 kB / 457.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002141/0.2929, allocations: 122.3 kB / 457.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2931, allocations: 330 kB / 458.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005737/0.2937, allocations: 257.2 kB / 458.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009946/0.2946, allocations: 0.8838 MB / 459.3 MB, free: 9.992 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.2958, allocations: 0.6172 MB / 459.9 MB, free: 9.297 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.2958, allocations: 0 / 459.9 MB, free: 9.297 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001756/0.2975, allocations: 0.858 MB / 460.8 MB, free: 8.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.2975, allocations: 11.94 kB / 460.8 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.2976, allocations: 4 kB / 460.8 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.977e-05/0.2976, allocations: 12 kB / 460.8 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000626/0.2982, allocations: 155.8 kB / 461 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.928e-05/0.2982, allocations: 16.2 kB / 461 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.2993, allocations: 163.3 kB / 461.2 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-05/0.2993, allocations: 28 kB / 461.2 MB, free: 8.047 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.0008384/0.3002, allocations: 0.5561 MB / 461.7 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002774/0.3005, allocations: 178.8 kB / 461.9 MB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/0.3019, allocations: 0.6958 MB / 462.6 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.302, allocations: 8 kB / 462.6 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.302, allocations: 0 / 462.6 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.302, allocations: 3.938 kB / 462.6 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003484/0.3054, allocations: 1.768 MB / 464.4 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.3055, allocations: 4 kB / 464.4 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005183/0.306, allocations: 115.8 kB / 464.5 MB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.77e-06/0.306, allocations: 4.094 kB / 464.5 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.993e-05/0.306, allocations: 12 kB / 464.5 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.306, allocations: 4 kB / 464.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.306, allocations: 0 / 464.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/0.3079, allocations: 1.052 MB / 465.6 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009119/0.3088, allocations: 334.7 kB / 465.9 MB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/0.309, allocations: 11.98 kB / 465.9 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.3101, allocations: 139.8 kB / 466.1 MB, free: 3.074 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003251/0.3104, allocations: 159.7 kB / 466.2 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.95e-05/0.3105, allocations: 12 kB / 466.2 MB, free: 2.906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002812/0.3133, allocations: 1.911 MB / 468.1 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3133, allocations: 0 / 468.1 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009767/0.3142, allocations: 323.3 kB / 468.4 MB, free: 0.6562 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.001966/0.3162, allocations: 0.5064 MB / 469 MB, free: 368 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.3176, allocations: 0.5647 MB / 469.5 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.3176, allocations: 0 / 469.5 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006859/0.3183, allocations: 336.7 kB / 469.8 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/0.3198, allocations: 290.8 kB / 470.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006145/0.326, allocations: 3.598 MB / 473.7 MB, free: 11.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001012/0.327, allocations: 0.845 MB / 474.6 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004882/0.3275, allocations: 107.4 kB / 474.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3275, allocations: 0 / 474.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of Templates: time 0.0393/0.3668, allocations: 23.22 MB / 497.9 MB, free: 3.395 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/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: 10.33533327234909]