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.00212/0.00212, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001958/0.001958, allocations: 188.3 kB / 24.49 MB, free: 3.945 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.359/1.359, allocations: 225.7 MB / 253.3 MB, free: 12.82 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 43.92 kB / 371.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2671, allocations: 52.18 MB / 423.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.00766/0.2748, allocations: 5.158 MB / 428.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004419/0.2792, allocations: 2.449 MB / 431 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004892/0.2797, allocations: 27.81 kB / 431 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001579/0.2813, allocations: 0.7427 MB / 431.7 MB, free: 5.977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000961/0.2822, allocations: 0.5165 MB / 432.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.2833, allocations: 0.5072 MB / 432.7 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00186/0.2852, allocations: 1.598 MB / 434.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006437/0.2858, allocations: 403 kB / 434.7 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007849/0.2866, allocations: 0.6345 MB / 435.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009269/0.2875, allocations: 0.7666 MB / 436.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001946/0.2877, allocations: 132 kB / 436.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004067/0.2881, allocations: 208 kB / 436.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000625/0.2887, allocations: 0.6465 MB / 437.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007536/0.2895, allocations: 0.7186 MB / 437.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00254/0.292, allocations: 2.513 MB / 440.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.292, allocations: 3.984 kB / 440.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.292, allocations: 4 kB / 440.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.346e-05/0.2921, allocations: 0 / 440.4 MB, free: 13.29 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.004843/0.2969, allocations: 2.557 MB / 442.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.297, allocations: 16.03 kB / 442.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.751e-05/0.297, allocations: 22.19 kB / 443 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001774/0.2972, allocations: 139.5 kB / 443.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004049/0.2976, allocations: 235.4 kB / 443.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002373/0.3, allocations: 1.486 MB / 444.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001548/0.3001, allocations: 151.2 kB / 445 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.3003, allocations: 87.94 kB / 445 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002175/0.3024, allocations: 1.71 MB / 446.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.3024, allocations: 3.938 kB / 446.8 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.821e-05/0.3025, allocations: 40 kB / 446.8 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/0.3026, allocations: 20 kB / 446.8 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.3039, allocations: 0.7182 MB / 447.5 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006332/0.3102, allocations: 4.163 MB / 451.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.3114, allocations: 0.5373 MB / 452.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007363/0.3121, allocations: 350.1 kB / 452.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.885e-05/0.3122, allocations: 7.984 kB / 452.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.3122, allocations: 46.56 kB / 452.6 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 3.006e-06/0.3122, allocations: 0 / 452.6 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001793/0.314, allocations: 0.8288 MB / 453.5 MB, free: 15.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002282/0.3142, allocations: 423.2 kB / 453.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003638/0.3179, allocations: 2.743 MB / 456.6 MB, free: 12.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.272e-05/0.3179, allocations: 37.7 kB / 456.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008761/0.3188, allocations: 0.8873 MB / 457.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.319, allocations: 166.6 kB / 457.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002254/0.3192, allocations: 122.3 kB / 457.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.3194, allocations: 334 kB / 458.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005349/0.3199, allocations: 253.1 kB / 458.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/0.321, allocations: 0.8877 MB / 459.3 MB, free: 9.477 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.322, allocations: 0.6172 MB / 459.9 MB, free: 8.781 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.322, allocations: 4 kB / 459.9 MB, free: 8.777 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001647/0.3237, allocations: 0.8581 MB / 460.8 MB, free: 7.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.3237, allocations: 12.12 kB / 460.8 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.3237, allocations: 4 kB / 460.8 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.3237, allocations: 11.94 kB / 460.8 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006099/0.3244, allocations: 159.8 kB / 460.9 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.99e-05/0.3244, allocations: 15.92 kB / 461 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009345/0.3253, allocations: 163.4 kB / 461.1 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.605e-05/0.3254, allocations: 24 kB / 461.1 MB, free: 7.527 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.0008917/0.3263, allocations: 0.5561 MB / 461.7 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002576/0.3265, allocations: 186.8 kB / 461.9 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001444/0.328, allocations: 0.6922 MB / 462.6 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.328, allocations: 7.938 kB / 462.6 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.328, allocations: 0 / 462.6 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.328, allocations: 3.984 kB / 462.6 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003313/0.3313, allocations: 1.883 MB / 464.5 MB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.3313, allocations: 4 kB / 464.5 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005057/0.3318, allocations: 107.8 kB / 464.6 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.385e-06/0.3318, allocations: 4 kB / 464.6 MB, free: 4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.832e-05/0.3319, allocations: 12 kB / 464.6 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.3319, allocations: 0 / 464.6 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.3319, allocations: 8.094 kB / 464.6 MB, free: 3.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001822/0.3337, allocations: 1.056 MB / 465.7 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007051/0.3344, allocations: 346.6 kB / 466 MB, free: 2.555 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001792/0.3346, allocations: 16 kB / 466 MB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009737/0.3356, allocations: 135.8 kB / 466.1 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003508/0.3359, allocations: 159.6 kB / 466.3 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.544e-05/0.336, allocations: 19.98 kB / 466.3 MB, free: 2.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002787/0.3387, allocations: 1.947 MB / 468.3 MB, free: 268 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3387, allocations: 4 kB / 468.3 MB, free: 264 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008904/0.3396, allocations: 315.4 kB / 468.6 MB, free: 15.95 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.003906/0.3435, allocations: 2.001 MB / 470.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.3448, allocations: 0.5619 MB / 471.1 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.3448, allocations: 4 kB / 471.1 MB, free: 13.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006381/0.3455, allocations: 336.5 kB / 471.5 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001364/0.3468, allocations: 333.4 kB / 471.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02474/0.3716, allocations: 17.2 MB / 489 MB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009903/0.3726, allocations: 0.853 MB / 489.8 MB, free: 10.44 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008044/0.3734, allocations: 295.1 kB / 490.1 MB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000931/0.3743, allocations: 0.6984 MB / 490.8 MB, free: 9.445 MB / 398.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3743, allocations: 0 / 490.8 MB, free: 9.445 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08062/0.4549, allocations: 41.05 MB / 0.5194 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/14.7, allocations: 4.062 kB / 0.5194 GB, free: 0.6836 MB / 430.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] 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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 24.243140820995905]