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.001269/0.001269, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.00105/0.00105, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9019/0.9019, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.88e-05/2.022e-05, allocations: 2.844 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005193/0.005213, allocations: 5.228 MB / 329.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004197/0.009411, allocations: 2.609 MB / 332.3 MB, free: 8.027 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006447/0.01006, allocations: 27.81 kB / 332.4 MB, free: 8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001801/0.01186, allocations: 0.7463 MB / 333.1 MB, free: 7.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001381/0.01324, allocations: 0.5863 MB / 333.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009566/0.01419, allocations: 0.5134 MB / 334.2 MB, free: 6.152 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001827/0.01602, allocations: 1.644 MB / 335.9 MB, free: 4.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005466/0.01657, allocations: 379 kB / 336.2 MB, free: 4.109 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001023/0.01759, allocations: 0.8965 MB / 337.1 MB, free: 3.211 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006726/0.01826, allocations: 0.6273 MB / 337.7 MB, free: 2.582 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001485/0.01841, allocations: 132 kB / 337.9 MB, free: 2.453 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003202/0.01873, allocations: 215.8 kB / 338.1 MB, free: 2.242 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003863/0.01912, allocations: 0.6465 MB / 338.7 MB, free: 1.594 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006888/0.01981, allocations: 0.5726 MB / 339.3 MB, free: 1.016 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00203/0.02184, allocations: 2.465 MB / 341.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.02184, allocations: 0 / 341.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.02184, allocations: 3.938 kB / 341.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.236e-05/0.02191, allocations: 8 kB / 341.8 MB, free: 14.53 MB / 314.7 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.003403/0.02531, allocations: 2.541 MB / 344.3 MB, free: 11.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.02536, allocations: 19.92 kB / 344.3 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.0255, allocations: 147.4 kB / 344.5 MB, free: 11.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002351/0.02573, allocations: 239.4 kB / 344.7 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001856/0.02759, allocations: 1.498 MB / 346.2 MB, free: 9.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/0.02769, allocations: 147.7 kB / 346.4 MB, free: 9.816 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.439e-05/0.02778, allocations: 84.38 kB / 346.4 MB, free: 9.734 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.02914, allocations: 1.707 MB / 348.2 MB, free: 7.805 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.02915, allocations: 8.125 kB / 348.2 MB, free: 7.797 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.869e-05/0.02921, allocations: 43.94 kB / 348.2 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.02923, allocations: 27.98 kB / 348.2 MB, free: 7.727 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000839/0.03007, allocations: 0.7143 MB / 348.9 MB, free: 7.012 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004274/0.03434, allocations: 4.166 MB / 353.1 MB, free: 2.676 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007059/0.03505, allocations: 0.5236 MB / 353.6 MB, free: 2.141 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004495/0.03549, allocations: 354.3 kB / 354 MB, free: 1.793 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.065e-05/0.03554, allocations: 8 kB / 354 MB, free: 1.785 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.03556, allocations: 38.56 kB / 354 MB, free: 1.738 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 2.184e-06/0.03556, allocations: 0 / 354 MB, free: 1.738 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001062/0.03663, allocations: 0.8298 MB / 354.9 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.03675, allocations: 419.2 kB / 355.3 MB, free: 404 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002278/0.03903, allocations: 2.775 MB / 358 MB, free: 13.58 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.693e-05/0.03908, allocations: 37.7 kB / 358.1 MB, free: 13.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004939/0.03957, allocations: 0.8952 MB / 359 MB, free: 12.63 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.709e-05/0.03967, allocations: 166.6 kB / 359.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.0398, allocations: 122.3 kB / 359.3 MB, free: 12.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003478/0.04015, allocations: 329.9 kB / 359.6 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003218/0.04047, allocations: 261.1 kB / 359.8 MB, free: 11.76 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000541/0.04101, allocations: 0.8839 MB / 360.7 MB, free: 10.67 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006154/0.04163, allocations: 0.6181 MB / 361.3 MB, free: 9.973 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.04163, allocations: 0 / 361.3 MB, free: 9.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001007/0.04264, allocations: 0.8632 MB / 362.2 MB, free: 9.102 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.04266, allocations: 8 kB / 362.2 MB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.04267, allocations: 4.5 kB / 362.2 MB, free: 9.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.04269, allocations: 15.98 kB / 362.2 MB, free: 9.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003295/0.04302, allocations: 163.7 kB / 362.4 MB, free: 8.914 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.04303, allocations: 8 kB / 362.4 MB, free: 8.906 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005739/0.0436, allocations: 163.4 kB / 362.6 MB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.46e-05/0.04365, allocations: 27.98 kB / 362.6 MB, free: 8.719 MB / 330.7 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.0006322/0.04428, allocations: 0.5628 MB / 363.1 MB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.04444, allocations: 194.7 kB / 363.3 MB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000843/0.04528, allocations: 0.6914 MB / 364 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.04529, allocations: 4 kB / 364 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.0453, allocations: 8 kB / 364 MB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.0453, allocations: 3.984 kB / 364 MB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/0.04738, allocations: 1.891 MB / 365.9 MB, free: 5.281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.04738, allocations: 7.938 kB / 365.9 MB, free: 5.273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002791/0.04766, allocations: 107.9 kB / 366 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.04767, allocations: 4 kB / 366 MB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.0477, allocations: 12 kB / 366.1 MB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.0477, allocations: 3.984 kB / 366.1 MB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.04771, allocations: 4 kB / 366.1 MB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.04911, allocations: 1.049 MB / 367.1 MB, free: 4.066 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004547/0.04957, allocations: 342.5 kB / 367.5 MB, free: 3.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.909e-05/0.04966, allocations: 16 kB / 367.5 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005107/0.05017, allocations: 143.8 kB / 367.6 MB, free: 3.574 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/0.05039, allocations: 155.7 kB / 367.8 MB, free: 3.422 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.05042, allocations: 16 kB / 367.8 MB, free: 3.406 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001678/0.05209, allocations: 1.964 MB / 369.7 MB, free: 1.422 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.0521, allocations: 0 / 369.7 MB, free: 1.422 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006322/0.05273, allocations: 311.4 kB / 370 MB, free: 1.117 MB / 330.7 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.002109/0.05484, allocations: 2.018 MB / 372.1 MB, free: 15.24 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007946/0.05563, allocations: 0.5652 MB / 372.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.05563, allocations: 0 / 372.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003883/0.05602, allocations: 336.5 kB / 373 MB, free: 14.35 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008807/0.0569, allocations: 322.8 kB / 373.3 MB, free: 14.03 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02256/0.07946, allocations: 17.35 MB / 390.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006341/0.08009, allocations: 0.8496 MB / 391.5 MB, free: 11.4 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006202/0.08071, allocations: 299 kB / 391.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006161/0.08133, allocations: 0.7073 MB / 392.5 MB, free: 10.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.963e-06/0.08133, allocations: 0 / 392.5 MB, free: 10.4 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05618/0.1375, allocations: 41.8 MB / 434.3 MB, free: 0.7891 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.293/8.431, allocations: 8 kB / 434.3 MB, free: 0.7812 MB / 394.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 12.447601645253599]