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.001817/0.001817, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002057/0.002057, allocations: 204.7 kB / 24.51 MB, free: 3.945 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.489/1.489, allocations: 230.5 MB / 258.2 MB, free: 7.801 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.001859/0.001859, allocations: 59.89 kB / 378.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2785, allocations: 53.4 MB / 431.9 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004361/0.2828, allocations: 2.796 MB / 434.7 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.2842, allocations: 0.7166 MB / 435.4 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.2844, allocations: 7.938 kB / 435.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002235/0.2846, allocations: 63.42 kB / 435.5 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002984/0.2849, allocations: 111.1 kB / 435.6 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003608/0.2853, allocations: 103.8 kB / 435.7 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004785/0.2857, allocations: 414.3 kB / 436.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002986/0.286, allocations: 146.4 kB / 436.2 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.2863, allocations: 167.4 kB / 436.4 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002808/0.2865, allocations: 179.2 kB / 436.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.99e-05/0.2866, allocations: 40 kB / 436.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.2867, allocations: 63.98 kB / 436.7 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001774/0.2869, allocations: 119.6 kB / 436.8 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.2871, allocations: 163.3 kB / 436.9 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006251/0.2877, allocations: 0.4941 MB / 437.4 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2877, allocations: 0 / 437.4 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2877, allocations: 4 kB / 437.4 MB, free: 0.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.2877, allocations: 0 / 437.4 MB, free: 0.918 MB / 334.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.00165/0.2894, allocations: 0.7311 MB / 438.2 MB, free: 156 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.2894, allocations: 8.031 kB / 438.2 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.089e-05/0.2895, allocations: 8.844 kB / 438.2 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.026e-05/0.2895, allocations: 70.72 kB / 438.3 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.403e-05/0.2896, allocations: 40.7 kB / 438.3 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005913/0.2902, allocations: 288.9 kB / 438.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/0.2902, allocations: 29.03 kB / 438.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.211e-05/0.2903, allocations: 32.36 kB / 438.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006406/0.2909, allocations: 393.2 kB / 439 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.291, allocations: 7.938 kB / 439 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.291, allocations: 12 kB / 439 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.291, allocations: 8 kB / 439.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004209/0.2914, allocations: 230.5 kB / 439.3 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.2933, allocations: 1.16 MB / 440.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003956/0.2936, allocations: 162.5 kB / 440.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002667/0.2939, allocations: 124.8 kB / 440.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.307e-05/0.294, allocations: 8 kB / 440.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.294, allocations: 34.56 kB / 440.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.673e-06/0.294, allocations: 0 / 440.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005706/0.2946, allocations: 229.6 kB / 441 MB, free: 13.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.2946, allocations: 59.34 kB / 441 MB, free: 13.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003664/0.295, allocations: 316.2 kB / 441.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.295, allocations: 33.64 kB / 441.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.2952, allocations: 212.4 kB / 441.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.405e-05/0.2952, allocations: 55.53 kB / 441.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.011e-05/0.2953, allocations: 49.66 kB / 441.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.2955, allocations: 334.8 kB / 442 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.2956, allocations: 75.95 kB / 442.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/0.2958, allocations: 132.3 kB / 442.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/0.296, allocations: 163.6 kB / 442.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.72e-06/0.296, allocations: 3.938 kB / 442.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000393/0.2964, allocations: 239.9 kB / 442.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.2965, allocations: 11.98 kB / 442.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.2965, allocations: 3.984 kB / 442.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.2965, allocations: 4 kB / 442.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.2967, allocations: 47.92 kB / 442.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.2967, allocations: 4 kB / 442.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003627/0.297, allocations: 68.02 kB / 442.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.2971, allocations: 12 kB / 442.8 MB, free: 11.28 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.000171/0.2972, allocations: 170 kB / 442.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.8e-05/0.2973, allocations: 27.81 kB / 443 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004132/0.2977, allocations: 203.7 kB / 443.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2977, allocations: 0 / 443.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2977, allocations: 0 / 443.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2977, allocations: 4 kB / 443.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007914/0.2985, allocations: 0.5597 MB / 443.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2985, allocations: 0 / 443.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.2987, allocations: 31.98 kB / 443.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.2987, allocations: 3.984 kB / 443.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.2987, allocations: 4 kB / 443.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2987, allocations: 0 / 443.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2987, allocations: 0 / 443.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005222/0.2992, allocations: 380.5 kB / 444.1 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.831e-05/0.2993, allocations: 35.73 kB / 444.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.545e-05/0.2993, allocations: 8.094 kB / 444.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000388/0.2997, allocations: 55.92 kB / 444.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.2999, allocations: 71.81 kB / 444.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.2999, allocations: 15.98 kB / 444.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002542/0.3002, allocations: 235 kB / 444.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3002, allocations: 0 / 444.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003584/0.3005, allocations: 87.78 kB / 444.6 MB, free: 9.332 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.0008622/0.3014, allocations: 0.9122 MB / 445.5 MB, free: 8.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003641/0.3018, allocations: 170.6 kB / 445.7 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3018, allocations: 4 kB / 445.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001732/0.3019, allocations: 103.9 kB / 445.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004181/0.3024, allocations: 64.14 kB / 445.9 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004444/0.3068, allocations: 3.054 MB / 448.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001962/0.307, allocations: 172.8 kB / 449.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001447/0.3071, allocations: 34.28 kB / 449.1 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001952/0.3073, allocations: 107.4 kB / 449.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3073, allocations: 0 / 449.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03282/0.3402, allocations: 7.916 MB / 457.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.73, allocations: 18.09 kB / 457.2 MB, free: 12.78 MB / 366.1 MB " [Timeout remaining time 648] (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: 17.883541141985916]