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.001748/0.001748, allocations: 117 kB / 18.49 MB, free: 4.566 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.002145/0.002145, allocations: 216.7 kB / 21.46 MB, free: 1.613 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.491/1.491, allocations: 230.5 MB / 254.7 MB, free: 15.02 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 67.89 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1063, allocations: 53.37 MB / 427 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005079/0.1113, allocations: 2.995 MB / 430 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.113, allocations: 0.744 MB / 430.8 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003467/0.1133, allocations: 11.94 kB / 430.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002893/0.1136, allocations: 55.38 kB / 430.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004166/0.114, allocations: 111.1 kB / 431 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004971/0.1145, allocations: 111.8 kB / 431.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006445/0.1152, allocations: 414.3 kB / 431.5 MB, free: 276 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003142/0.1155, allocations: 145.8 kB / 431.6 MB, free: 128 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.228/0.3435, allocations: 161.7 kB / 431.8 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000518/0.3441, allocations: 180.8 kB / 432 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.917e-05/0.3442, allocations: 39.19 kB / 432 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.3443, allocations: 53.34 kB / 432 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.3445, allocations: 114.1 kB / 432.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001971/0.3447, allocations: 202.7 kB / 432.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006362/0.3453, allocations: 0.4915 MB / 432.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3453, allocations: 3.25 kB / 432.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3453, allocations: 0.5312 kB / 432.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.3454, allocations: 0 / 432.8 MB, free: 7.531 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.001587/0.3469, allocations: 0.806 MB / 433.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.347, allocations: 10.44 kB / 433.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.297e-05/0.347, allocations: 8.844 kB / 433.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.693e-05/0.3471, allocations: 71.08 kB / 433.7 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.618e-05/0.3472, allocations: 43.61 kB / 433.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004714/0.3476, allocations: 344.5 kB / 434.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.3477, allocations: 27.12 kB / 434.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.196e-05/0.3477, allocations: 30.06 kB / 434.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005452/0.3483, allocations: 349 kB / 434.5 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.3483, allocations: 2.203 kB / 434.5 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/0.3483, allocations: 13.59 kB / 434.5 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.3483, allocations: 7.969 kB / 434.5 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004009/0.3487, allocations: 235.5 kB / 434.8 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.3504, allocations: 1.308 MB / 436.1 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003813/0.3507, allocations: 165.7 kB / 436.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002673/0.351, allocations: 116.3 kB / 436.4 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.805e-05/0.351, allocations: 2.188 kB / 436.4 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.815e-05/0.3511, allocations: 34.55 kB / 436.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.272e-06/0.3511, allocations: 0 / 436.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004717/0.3515, allocations: 228.8 kB / 436.6 MB, free: 5.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.432e-05/0.3516, allocations: 57.16 kB / 436.7 MB, free: 5.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003603/0.3519, allocations: 322.6 kB / 437 MB, free: 5.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.3519, allocations: 30.58 kB / 437 MB, free: 5.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.352, allocations: 215.6 kB / 437.2 MB, free: 5.594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.141e-05/0.3521, allocations: 54.89 kB / 437.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.484e-05/0.3522, allocations: 47.72 kB / 437.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.888e-05/0.3522, allocations: 343 kB / 437.7 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.3524, allocations: 70.91 kB / 437.7 MB, free: 5.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001566/0.3525, allocations: 136.9 kB / 437.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.3527, allocations: 165.7 kB / 438 MB, free: 5.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3527, allocations: 0 / 438 MB, free: 5.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003766/0.3531, allocations: 246.2 kB / 438.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.3531, allocations: 6.625 kB / 438.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.3531, allocations: 2.312 kB / 438.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.3532, allocations: 7.688 kB / 438.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000183/0.3533, allocations: 44.88 kB / 438.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.3534, allocations: 8.359 kB / 438.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004025/0.3538, allocations: 70.92 kB / 438.4 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.719e-05/0.3538, allocations: 12.06 kB / 438.4 MB, free: 5.004 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.0001345/0.3539, allocations: 159.9 kB / 438.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.135e-05/0.354, allocations: 24.33 kB / 438.6 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005185/0.3545, allocations: 201.7 kB / 438.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3545, allocations: 2.438 kB / 438.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3545, allocations: 0.75 kB / 438.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.3545, allocations: 4.016 kB / 438.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009777/0.3555, allocations: 0.6299 MB / 439.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3555, allocations: 0 / 439.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.3557, allocations: 31.72 kB / 439.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.3557, allocations: 2.094 kB / 439.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.3557, allocations: 1.781 kB / 439.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.716e-06/0.3557, allocations: 1.875 kB / 439.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3557, allocations: 4.312 kB / 439.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004556/0.3561, allocations: 385.8 kB / 439.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.872e-05/0.3562, allocations: 102.2 kB / 439.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.201e-05/0.3562, allocations: 11.03 kB / 440 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005083/0.3567, allocations: 50.34 kB / 440 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000203/0.357, allocations: 77.36 kB / 440.1 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.357, allocations: 9.625 kB / 440.1 MB, free: 4.051 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002265/0.3572, allocations: 236.2 kB / 440.3 MB, free: 3.918 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3572, allocations: 5.062 kB / 440.3 MB, free: 3.914 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003786/0.3576, allocations: 83.81 kB / 440.4 MB, free: 3.895 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.0006534/0.3582, allocations: 0.9203 MB / 441.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003489/0.3586, allocations: 187.1 kB / 441.5 MB, free: 3.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3586, allocations: 0 / 441.5 MB, free: 3.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.3588, allocations: 99.7 kB / 441.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004296/0.3592, allocations: 63.84 kB / 441.7 MB, free: 3.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004602/0.3638, allocations: 3.039 MB / 444.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003436/0.3641, allocations: 0.7726 MB / 445.5 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001963/0.3643, allocations: 41.67 kB / 445.5 MB, free: 296 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.3645, allocations: 105.4 kB / 445.6 MB, free: 216 kB / 350.1 MB Notification: Performance of SimCode: time 1.333e-06/0.3645, allocations: 0 / 445.6 MB, free: 216 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02777/0.3923, allocations: 7.465 MB / 453.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.637/9.029, allocations: 33.19 kB / 453.1 MB, free: 14.63 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 15.18660323903896]