Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.00153/0.00153, allocations: 121.3 kB / 18.5 MB, free: 4.578 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.001838/0.001838, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.47/1.47, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002429/0.002429, allocations: 67.88 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1265, allocations: 53.32 MB / 426.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.006114/0.1326, allocations: 2.997 MB / 429.7 MB, free: 2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.1346, allocations: 0.7517 MB / 430.4 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004646/0.1351, allocations: 4 kB / 430.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000363/0.1354, allocations: 63.38 kB / 430.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005229/0.136, allocations: 107.1 kB / 430.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005192/0.1365, allocations: 103.8 kB / 430.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006962/0.1372, allocations: 418.3 kB / 431.1 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003461/0.1375, allocations: 149.8 kB / 431.2 MB, free: 420 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002856/0.1378, allocations: 155.4 kB / 431.4 MB, free: 264 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003789/0.1382, allocations: 183.2 kB / 431.6 MB, free: 80 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.383e-05/0.1383, allocations: 40 kB / 431.6 MB, free: 40 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2269/0.3652, allocations: 52.42 kB / 431.7 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003128/0.3655, allocations: 111.8 kB / 431.8 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003439/0.3659, allocations: 201.1 kB / 432 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009658/0.3668, allocations: 0.4933 MB / 432.4 MB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3668, allocations: 0.625 kB / 432.5 MB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3668, allocations: 0 / 432.5 MB, free: 7.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.3668, allocations: 1.562 kB / 432.5 MB, free: 7.949 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001654/0.3685, allocations: 0.8028 MB / 433.3 MB, free: 7.465 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.3685, allocations: 10.09 kB / 433.3 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.772e-05/0.3686, allocations: 69.55 kB / 433.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.869e-05/0.3687, allocations: 44.98 kB / 433.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004751/0.3692, allocations: 346.4 kB / 433.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.3692, allocations: 25.31 kB / 433.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.437e-05/0.3692, allocations: 34.03 kB / 433.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004877/0.3697, allocations: 347.3 kB / 434.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.3698, allocations: 0 / 434.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.954e-05/0.3698, allocations: 12.47 kB / 434.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.3698, allocations: 8.156 kB / 434.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000387/0.3702, allocations: 241.4 kB / 434.4 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.372, allocations: 1.301 MB / 435.7 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003559/0.3723, allocations: 162.4 kB / 435.8 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.3726, allocations: 116.9 kB / 435.9 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.331e-05/0.3726, allocations: 8.109 kB / 435.9 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.3726, allocations: 35.81 kB / 436 MB, free: 6.402 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.132e-06/0.3726, allocations: 0 / 436 MB, free: 6.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004812/0.3731, allocations: 230.4 kB / 436.2 MB, free: 6.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.3732, allocations: 54.58 kB / 436.3 MB, free: 6.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000348/0.3735, allocations: 322.3 kB / 436.6 MB, free: 6.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.3735, allocations: 26.27 kB / 436.6 MB, free: 6.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.3736, allocations: 213.8 kB / 436.8 MB, free: 6.012 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.178e-05/0.3737, allocations: 59.17 kB / 436.9 MB, free: 5.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.872e-05/0.3738, allocations: 51.36 kB / 436.9 MB, free: 5.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.523e-05/0.3738, allocations: 335.2 kB / 437.2 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.374, allocations: 74.61 kB / 437.3 MB, free: 5.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.3741, allocations: 132.5 kB / 437.4 MB, free: 5.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002121/0.3743, allocations: 168.4 kB / 437.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3743, allocations: 1.469 kB / 437.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003767/0.3747, allocations: 243.8 kB / 437.9 MB, free: 5.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.3747, allocations: 7.109 kB / 437.9 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3747, allocations: 2.188 kB / 437.9 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.3748, allocations: 3.281 kB / 437.9 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.3749, allocations: 45.58 kB / 437.9 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.3749, allocations: 8.344 kB / 437.9 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003595/0.3753, allocations: 74.08 kB / 438 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-05/0.3753, allocations: 9.438 kB / 438 MB, free: 5.422 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001327/0.3755, allocations: 151.8 kB / 438.1 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.6e-05/0.3755, allocations: 33.05 kB / 438.2 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003848/0.3759, allocations: 205 kB / 438.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3759, allocations: 3.188 kB / 438.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3759, allocations: 0.875 kB / 438.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.3759, allocations: 4.406 kB / 438.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000781/0.3767, allocations: 0.6246 MB / 439 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3767, allocations: 1.734 kB / 439 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001509/0.3769, allocations: 32.77 kB / 439 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.3769, allocations: 2.25 kB / 439 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.3769, allocations: 8.672 kB / 439.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.3769, allocations: 0 / 439.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.3769, allocations: 1.812 kB / 439.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004485/0.3773, allocations: 383.7 kB / 439.4 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.843e-05/0.3774, allocations: 109 kB / 439.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.31e-05/0.3774, allocations: 1.844 kB / 439.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003847/0.3778, allocations: 60.62 kB / 439.6 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.378, allocations: 74.09 kB / 439.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/0.378, allocations: 9.562 kB / 439.7 MB, free: 4.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.3783, allocations: 236.3 kB / 439.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3783, allocations: 0 / 439.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003808/0.3787, allocations: 84.81 kB / 440 MB, free: 4.359 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.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 (16): * Single equations (assignments): 16 * 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.0006258/0.3793, allocations: 0.923 MB / 440.9 MB, free: 3.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000355/0.3796, allocations: 179.1 kB / 441.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3796, allocations: 5.094 kB / 441.1 MB, free: 3.539 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.3798, allocations: 103.3 kB / 441.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004116/0.3802, allocations: 55.66 kB / 441.3 MB, free: 3.492 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003738/0.384, allocations: 3.039 MB / 444.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.3842, allocations: 0.7767 MB / 445.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001651/0.3844, allocations: 37.08 kB / 445.1 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.3846, allocations: 105.1 kB / 445.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3846, allocations: 5 kB / 445.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03498/0.4195, allocations: 7.424 MB / 452.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.428/8.848, allocations: 24.59 kB / 452.7 MB, free: 15.21 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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: 13.562041839119047]