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.001962/0.001962, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001817/0.001817, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.452/1.452, allocations: 230.6 MB / 258.3 MB, free: 8.004 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 47.94 kB / 378.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2931, allocations: 53.36 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007731/0.3009, allocations: 5.901 MB / 437.8 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004806/0.3057, allocations: 2.766 MB / 440.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006698/0.3063, allocations: 31.81 kB / 440.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001698/0.308, allocations: 0.7709 MB / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001251/0.3093, allocations: 0.5594 MB / 441.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.3105, allocations: 0.5287 MB / 442.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001879/0.3124, allocations: 1.602 MB / 444.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006305/0.313, allocations: 403.1 kB / 444.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007382/0.3138, allocations: 0.6345 MB / 445.1 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009658/0.3147, allocations: 0.7744 MB / 445.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001893/0.3149, allocations: 132 kB / 446 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004205/0.3153, allocations: 208 kB / 446.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000646/0.316, allocations: 0.6582 MB / 446.9 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009203/0.3169, allocations: 0.9204 MB / 447.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002855/0.3198, allocations: 2.509 MB / 450.3 MB, free: 4.406 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3198, allocations: 0 / 450.3 MB, free: 4.406 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3198, allocations: 0 / 450.3 MB, free: 4.406 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.064e-05/0.3198, allocations: 0 / 450.3 MB, free: 4.406 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.005064/0.3249, allocations: 2.577 MB / 452.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.3249, allocations: 12.03 kB / 452.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.093e-05/0.325, allocations: 22.19 kB / 452.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001718/0.3251, allocations: 139.5 kB / 453 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003612/0.3255, allocations: 231.5 kB / 453.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002459/0.3279, allocations: 1.514 MB / 454.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.3281, allocations: 151.2 kB / 454.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.3282, allocations: 87.98 kB / 455 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00183/0.3301, allocations: 1.098 MB / 456.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.3301, allocations: 0 / 456.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-05/0.3302, allocations: 43.94 kB / 456.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.3302, allocations: 20 kB / 456.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.3316, allocations: 0.7183 MB / 456.9 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007238/0.3388, allocations: 4.53 MB / 461.4 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.34, allocations: 0.5221 MB / 461.9 MB, free: 8.367 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007515/0.3407, allocations: 365.7 kB / 462.3 MB, free: 8.012 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.831e-05/0.3408, allocations: 8 kB / 462.3 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.892e-05/0.3408, allocations: 46.56 kB / 462.4 MB, free: 7.949 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.284e-06/0.3408, allocations: 0 / 462.4 MB, free: 7.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001912/0.3427, allocations: 0.8287 MB / 463.2 MB, free: 7.113 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002383/0.343, allocations: 419.2 kB / 463.6 MB, free: 6.605 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00371/0.3467, allocations: 2.767 MB / 466.4 MB, free: 3.797 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.144e-05/0.3468, allocations: 37.7 kB / 466.4 MB, free: 3.754 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008202/0.3476, allocations: 0.8914 MB / 467.3 MB, free: 2.855 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001597/0.3478, allocations: 166.6 kB / 467.5 MB, free: 2.691 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002124/0.348, allocations: 126.2 kB / 467.6 MB, free: 2.562 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.3481, allocations: 330 kB / 467.9 MB, free: 2.234 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005365/0.3487, allocations: 249.2 kB / 468.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008187/0.3495, allocations: 0.5324 MB / 468.7 MB, free: 1.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.3505, allocations: 0.6249 MB / 469.3 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.3505, allocations: 0 / 469.3 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001764/0.3523, allocations: 0.8582 MB / 470.2 MB, free: 15.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.3523, allocations: 12.12 kB / 470.2 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.3523, allocations: 4 kB / 470.2 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.748e-05/0.3524, allocations: 15.94 kB / 470.2 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005915/0.353, allocations: 151.8 kB / 470.3 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.353, allocations: 15.92 kB / 470.4 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.354, allocations: 163.4 kB / 470.5 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.366e-05/0.3541, allocations: 27.94 kB / 470.5 MB, free: 15.39 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.0008007/0.3549, allocations: 0.5622 MB / 471.1 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002636/0.3551, allocations: 190.8 kB / 471.3 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001371/0.3565, allocations: 0.7001 MB / 472 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.3565, allocations: 7.938 kB / 472 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3565, allocations: 8 kB / 472 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.3565, allocations: 3.984 kB / 472 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003314/0.3598, allocations: 2.093 MB / 474.1 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3598, allocations: 7.938 kB / 474.1 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004834/0.3603, allocations: 112 kB / 474.2 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.878e-06/0.3603, allocations: 7.984 kB / 474.2 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.704e-05/0.3604, allocations: 8 kB / 474.2 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.3604, allocations: 0 / 474.2 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3604, allocations: 4 kB / 474.2 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001782/0.3621, allocations: 1.06 MB / 475.3 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007072/0.3629, allocations: 338.6 kB / 475.6 MB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/0.363, allocations: 15.98 kB / 475.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.364, allocations: 135.8 kB / 475.8 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000305/0.3643, allocations: 159.7 kB / 475.9 MB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.783e-05/0.3644, allocations: 16 kB / 475.9 MB, free: 9.859 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002928/0.3673, allocations: 1.971 MB / 477.9 MB, free: 7.867 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3673, allocations: 0 / 477.9 MB, free: 7.867 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001018/0.3683, allocations: 315.3 kB / 478.2 MB, free: 7.559 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.004044/0.3724, allocations: 1.971 MB / 480.2 MB, free: 5.738 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.3737, allocations: 0.5733 MB / 480.8 MB, free: 5.168 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.3737, allocations: 4 kB / 480.8 MB, free: 5.164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006903/0.3744, allocations: 344.3 kB / 481.1 MB, free: 4.828 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002053/0.3765, allocations: 334.8 kB / 481.4 MB, free: 4.508 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0303/0.4068, allocations: 17.25 MB / 498.7 MB, free: 2.867 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001412/0.4082, allocations: 1.444 MB / 0.4884 GB, free: 1.391 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008077/0.409, allocations: 291.1 kB / 0.4887 GB, free: 1.102 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009345/0.4099, allocations: 0.7062 MB / 0.4894 GB, free: 404 kB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4099, allocations: 0 / 0.4894 GB, free: 404 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08403/0.494, allocations: 39.64 MB / 0.5281 GB, free: 9.051 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/14.72, allocations: 4.062 kB / 0.5281 GB, free: 9.047 MB / 446.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] 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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 24.46655757399276]