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.001366/0.001366, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001547/0.001547, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.46/1.46, allocations: 230.5 MB / 258.2 MB, free: 8.027 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 59.91 kB / 378.6 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2788, allocations: 53.41 MB / 432 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008747/0.2876, allocations: 5.907 MB / 437.9 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005143/0.2927, allocations: 2.765 MB / 440.6 MB, free: 14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007636/0.2935, allocations: 27.81 kB / 440.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001809/0.2953, allocations: 0.7666 MB / 441.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001343/0.2967, allocations: 0.5633 MB / 442 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.2979, allocations: 0.5255 MB / 442.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002125/0.3, allocations: 1.598 MB / 444.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006972/0.3007, allocations: 403.1 kB / 444.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008599/0.3016, allocations: 0.6384 MB / 445.1 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009846/0.3026, allocations: 0.7666 MB / 445.9 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001987/0.3028, allocations: 136 kB / 446 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003926/0.3032, allocations: 211.9 kB / 446.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005757/0.3037, allocations: 0.6505 MB / 446.9 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008732/0.3046, allocations: 0.9243 MB / 447.8 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002687/0.3073, allocations: 2.509 MB / 450.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3073, allocations: 0 / 450.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.3073, allocations: 0 / 450.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.847e-05/0.3073, allocations: 0 / 450.3 MB, free: 4.246 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.005742/0.3131, allocations: 2.573 MB / 452.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/0.3131, allocations: 8.031 kB / 452.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.748e-05/0.3132, allocations: 30.19 kB / 452.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001978/0.3134, allocations: 139.5 kB / 453.1 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004124/0.3138, allocations: 235.5 kB / 453.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002605/0.3164, allocations: 1.506 MB / 454.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/0.3166, allocations: 151.7 kB / 455 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.3167, allocations: 88.12 kB / 455.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/0.3186, allocations: 1.107 MB / 456.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.3186, allocations: 0 / 456.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.366e-05/0.3187, allocations: 40 kB / 456.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.3187, allocations: 20 kB / 456.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.3201, allocations: 0.7182 MB / 456.9 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007538/0.3277, allocations: 4.534 MB / 461.5 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.3289, allocations: 0.5192 MB / 462 MB, free: 8.215 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007946/0.3297, allocations: 364.8 kB / 462.3 MB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.943e-05/0.3297, allocations: 7.938 kB / 462.4 MB, free: 7.852 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.332e-05/0.3298, allocations: 50.55 kB / 462.4 MB, free: 7.793 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.575e-06/0.3298, allocations: 0 / 462.4 MB, free: 7.793 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002005/0.3318, allocations: 0.8182 MB / 463.2 MB, free: 6.969 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002551/0.3321, allocations: 419.2 kB / 463.6 MB, free: 6.461 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00382/0.3359, allocations: 2.771 MB / 466.4 MB, free: 3.648 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.213e-05/0.336, allocations: 37.7 kB / 466.4 MB, free: 3.605 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008345/0.3368, allocations: 0.8953 MB / 467.3 MB, free: 2.703 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.337, allocations: 158.6 kB / 467.5 MB, free: 2.547 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002288/0.3372, allocations: 126.2 kB / 467.6 MB, free: 2.418 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.3373, allocations: 333.9 kB / 467.9 MB, free: 2.086 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000562/0.3379, allocations: 265.1 kB / 468.2 MB, free: 1.828 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000834/0.3387, allocations: 0.5285 MB / 468.7 MB, free: 1.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.3398, allocations: 0.6211 MB / 469.4 MB, free: 492 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.3398, allocations: 0 / 469.4 MB, free: 492 kB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001801/0.3416, allocations: 0.8621 MB / 470.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.3417, allocations: 8 kB / 470.2 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.3417, allocations: 4 kB / 470.2 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.3417, allocations: 8 kB / 470.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006247/0.3423, allocations: 159.7 kB / 470.4 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/0.3423, allocations: 12.03 kB / 470.4 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/0.3434, allocations: 163.4 kB / 470.6 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.885e-05/0.3435, allocations: 27.94 kB / 470.6 MB, free: 15.24 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.0008423/0.3443, allocations: 0.5639 MB / 471.2 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003028/0.3446, allocations: 186.8 kB / 471.3 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/0.3461, allocations: 0.7108 MB / 472 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.3461, allocations: 7.938 kB / 472.1 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3461, allocations: 3.938 kB / 472.1 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.3461, allocations: 4 kB / 472.1 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003469/0.3496, allocations: 2.093 MB / 474.2 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.3496, allocations: 7.984 kB / 474.2 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005081/0.3501, allocations: 107.9 kB / 474.3 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.3501, allocations: 0 / 474.3 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.214e-05/0.3501, allocations: 16 kB / 474.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/0.3501, allocations: 3.984 kB / 474.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.3501, allocations: 7.938 kB / 474.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001859/0.352, allocations: 1.048 MB / 475.3 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007403/0.3527, allocations: 342.6 kB / 475.7 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001805/0.3529, allocations: 8 kB / 475.7 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.354, allocations: 143.8 kB / 475.8 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003155/0.3543, allocations: 163.7 kB / 476 MB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.312e-05/0.3543, allocations: 15.94 kB / 476 MB, free: 9.703 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002751/0.3571, allocations: 1.964 MB / 478 MB, free: 7.719 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3571, allocations: 4 kB / 478 MB, free: 7.715 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009306/0.358, allocations: 315.3 kB / 478.3 MB, free: 7.406 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.003975/0.362, allocations: 1.979 MB / 480.3 MB, free: 5.551 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00128/0.3633, allocations: 0.5689 MB / 480.8 MB, free: 4.984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.3633, allocations: 4 kB / 480.8 MB, free: 4.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006701/0.3639, allocations: 332.6 kB / 481.2 MB, free: 4.656 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.3655, allocations: 325.8 kB / 481.5 MB, free: 4.336 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02898/0.3944, allocations: 17.25 MB / 498.7 MB, free: 2.699 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001423/0.3959, allocations: 1.448 MB / 0.4884 GB, free: 1.219 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009877/0.3968, allocations: 295.1 kB / 0.4887 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/0.398, allocations: 0.7023 MB / 0.4894 GB, free: 228 kB / 398.1 MB Notification: Performance of SimCode: time 1.663e-06/0.398, allocations: 0 / 0.4894 GB, free: 228 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08697/0.4849, allocations: 39.63 MB / 0.5281 GB, free: 8.789 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.36/14.85, allocations: 0 / 0.5281 GB, free: 8.789 MB / 446.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 24.785094556980766]