Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.001393/0.001393, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001561/0.001561, allocations: 214.1 kB / 24.52 MB, free: 3.941 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.391/1.391, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 47.92 kB / 378.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2843, allocations: 53.35 MB / 431.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004369/0.2886, allocations: 2.793 MB / 434.6 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.2901, allocations: 0.7167 MB / 435.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001835/0.2903, allocations: 7.938 kB / 435.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002487/0.2905, allocations: 71.36 kB / 435.4 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002776/0.2908, allocations: 107.1 kB / 435.5 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003728/0.2912, allocations: 107.9 kB / 435.6 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004935/0.2916, allocations: 410.3 kB / 436 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00029/0.2919, allocations: 150.4 kB / 436.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.2921, allocations: 159.4 kB / 436.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000267/0.2924, allocations: 183.2 kB / 436.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.215e-05/0.2924, allocations: 44 kB / 436.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.2926, allocations: 63.92 kB / 436.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001665/0.2927, allocations: 111.6 kB / 436.7 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.2929, allocations: 167.2 kB / 436.9 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000596/0.2935, allocations: 0.4902 MB / 437.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.2935, allocations: 4 kB / 437.4 MB, free: 1.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2935, allocations: 3.938 kB / 437.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.2935, allocations: 4 kB / 437.4 MB, free: 1.059 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.001577/0.2951, allocations: 0.7195 MB / 438.1 MB, free: 312 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.2951, allocations: 8.031 kB / 438.1 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.964e-05/0.2952, allocations: 8.844 kB / 438.1 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.965e-05/0.2952, allocations: 70.72 kB / 438.2 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.399e-05/0.2953, allocations: 44.7 kB / 438.2 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005531/0.2959, allocations: 284.9 kB / 438.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.2959, allocations: 29.03 kB / 438.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.77e-05/0.296, allocations: 28.38 kB / 438.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006187/0.2966, allocations: 397.2 kB / 439 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.2966, allocations: 0 / 439 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.283e-05/0.2966, allocations: 16 kB / 439 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.2966, allocations: 8 kB / 439 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004208/0.2971, allocations: 242.5 kB / 439.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.299, allocations: 1.156 MB / 440.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003846/0.2994, allocations: 162.5 kB / 440.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002726/0.2996, allocations: 124.8 kB / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.891e-05/0.2997, allocations: 7.984 kB / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.2997, allocations: 34.56 kB / 440.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.803e-06/0.2997, allocations: 0 / 440.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004918/0.3002, allocations: 240 kB / 440.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.3002, allocations: 55.34 kB / 441 MB, free: 13.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003661/0.3006, allocations: 316.2 kB / 441.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.3006, allocations: 29.7 kB / 441.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.3008, allocations: 212.4 kB / 441.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.52e-05/0.3008, allocations: 55.53 kB / 441.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.968e-05/0.3009, allocations: 53.66 kB / 441.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.3011, allocations: 338.8 kB / 442 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001333/0.3012, allocations: 67.95 kB / 442 MB, free: 12.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.3014, allocations: 139.6 kB / 442.2 MB, free: 12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002395/0.3016, allocations: 170.4 kB / 442.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.3016, allocations: 3.938 kB / 442.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003821/0.302, allocations: 233.2 kB / 442.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.302, allocations: 8 kB / 442.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.302, allocations: 3.984 kB / 442.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.3021, allocations: 4 kB / 442.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.3022, allocations: 48.17 kB / 442.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.677e-06/0.3022, allocations: 8 kB / 442.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.3026, allocations: 63.77 kB / 442.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.877e-05/0.3026, allocations: 8 kB / 442.7 MB, free: 11.43 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.0001659/0.3028, allocations: 165.6 kB / 442.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.996e-05/0.3029, allocations: 27.81 kB / 442.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004065/0.3033, allocations: 195.8 kB / 443.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.3033, allocations: 7.984 kB / 443.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3033, allocations: 0 / 443.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3033, allocations: 0 / 443.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007612/0.304, allocations: 0.5569 MB / 443.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.304, allocations: 0 / 443.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001597/0.3042, allocations: 35.92 kB / 443.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3042, allocations: 0 / 443.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.3042, allocations: 7.984 kB / 443.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3042, allocations: 0 / 443.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3042, allocations: 0 / 443.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005094/0.3047, allocations: 375.8 kB / 444.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.856e-05/0.3048, allocations: 39.73 kB / 444.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.622e-05/0.3048, allocations: 7.984 kB / 444.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000384/0.3052, allocations: 55.86 kB / 444.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.3054, allocations: 87.69 kB / 444.3 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.3054, allocations: 11.98 kB / 444.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002607/0.3057, allocations: 235.1 kB / 444.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3057, allocations: 0 / 444.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003637/0.3061, allocations: 83.78 kB / 444.6 MB, free: 9.48 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.0008661/0.3069, allocations: 0.9151 MB / 445.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003554/0.3073, allocations: 171.8 kB / 445.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3073, allocations: 0 / 445.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.3075, allocations: 104.4 kB / 445.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.3079, allocations: 70.41 kB / 445.8 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00395/0.3119, allocations: 3.048 MB / 448.9 MB, free: 5.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001762/0.312, allocations: 168.8 kB / 449.1 MB, free: 4.836 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00014/0.3122, allocations: 34.28 kB / 449.1 MB, free: 4.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/0.3124, allocations: 107.4 kB / 449.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3124, allocations: 0 / 449.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/0.3439, allocations: 7.917 MB / 457.1 MB, free: 13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.79, allocations: 6.812 kB / 457.1 MB, free: 13 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.603459915029816]