Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001637/0.001637, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 187.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 51.92 kB / 371.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.268, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004528/0.2725, allocations: 2.995 MB / 426.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.274, allocations: 0.7167 MB / 427.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001849/0.2742, allocations: 11.94 kB / 427.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002242/0.2744, allocations: 59.42 kB / 427.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002678/0.2747, allocations: 111 kB / 427.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003436/0.275, allocations: 111.9 kB / 427.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004423/0.2754, allocations: 422.1 kB / 427.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002647/0.2757, allocations: 158 kB / 428 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.2759, allocations: 167.4 kB / 428.1 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002728/0.2762, allocations: 179.3 kB / 428.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.578e-05/0.2762, allocations: 40 kB / 428.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.2763, allocations: 59.84 kB / 428.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.2765, allocations: 111.7 kB / 428.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002014/0.2767, allocations: 207 kB / 428.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005876/0.2773, allocations: 0.4953 MB / 429.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2773, allocations: 0 / 429.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2773, allocations: 0 / 429.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.2773, allocations: 0 / 429.2 MB, free: 8.762 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.001619/0.2789, allocations: 0.7234 MB / 429.9 MB, free: 8.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.279, allocations: 8.031 kB / 429.9 MB, free: 7.996 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.852e-05/0.279, allocations: 8.844 kB / 430 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.867e-05/0.2791, allocations: 66.72 kB / 430 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.466e-05/0.2791, allocations: 44.66 kB / 430.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005026/0.2796, allocations: 292.9 kB / 430.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.2797, allocations: 25.03 kB / 430.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.062e-05/0.2797, allocations: 36.31 kB / 430.4 MB, free: 7.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005945/0.2803, allocations: 345.9 kB / 430.7 MB, free: 7.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.2803, allocations: 0 / 430.7 MB, free: 7.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.506e-05/0.2804, allocations: 15.98 kB / 430.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.2804, allocations: 8 kB / 430.8 MB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000439/0.2808, allocations: 238.5 kB / 431 MB, free: 6.898 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.2826, allocations: 1.257 MB / 432.3 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003665/0.283, allocations: 166.5 kB / 432.4 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002524/0.2833, allocations: 116.7 kB / 432.5 MB, free: 5.273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.2833, allocations: 4 kB / 432.5 MB, free: 5.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.2833, allocations: 34.56 kB / 432.6 MB, free: 5.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.372e-06/0.2833, allocations: 7.938 kB / 432.6 MB, free: 5.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004776/0.2838, allocations: 224.9 kB / 432.8 MB, free: 4.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.2839, allocations: 55.41 kB / 432.9 MB, free: 4.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003727/0.2842, allocations: 324.2 kB / 433.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.2843, allocations: 29.7 kB / 433.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.2844, allocations: 208.4 kB / 433.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.336e-05/0.2845, allocations: 59.48 kB / 433.5 MB, free: 4.297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.272e-05/0.2845, allocations: 49.64 kB / 433.5 MB, free: 4.242 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.2847, allocations: 342.8 kB / 433.8 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.2848, allocations: 67.97 kB / 433.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.285, allocations: 143.5 kB / 434.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.2853, allocations: 163.6 kB / 434.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.2853, allocations: 3.938 kB / 434.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004027/0.2857, allocations: 248.3 kB / 434.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.2857, allocations: 4 kB / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.2857, allocations: 4 kB / 434.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.2857, allocations: 0 / 434.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.2859, allocations: 51.91 kB / 434.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.2859, allocations: 4 kB / 434.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000387/0.2863, allocations: 72.02 kB / 434.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.2863, allocations: 8 kB / 434.6 MB, free: 3.086 MB / 334.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.0001644/0.2865, allocations: 157.7 kB / 434.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.779e-05/0.2865, allocations: 23.86 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004115/0.2869, allocations: 195.8 kB / 435 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.2869, allocations: 0 / 435 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2869, allocations: 4 kB / 435 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.287, allocations: 7.984 kB / 435 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008142/0.2878, allocations: 0.5959 MB / 435.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2878, allocations: 4 kB / 435.6 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.2879, allocations: 31.92 kB / 435.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.2879, allocations: 0 / 435.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.288, allocations: 8 kB / 435.6 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.288, allocations: 3.984 kB / 435.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.288, allocations: 4.016 kB / 435.6 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005063/0.2885, allocations: 379.9 kB / 436 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.644e-05/0.2885, allocations: 35.81 kB / 436 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.485e-05/0.2886, allocations: 4 kB / 436 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004184/0.289, allocations: 59.97 kB / 436.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/0.2892, allocations: 79.75 kB / 436.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.2892, allocations: 12 kB / 436.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002585/0.2894, allocations: 235.1 kB / 436.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2895, allocations: 0 / 436.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003591/0.2898, allocations: 83.78 kB / 436.5 MB, free: 1.105 MB / 334.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.0008593/0.2907, allocations: 0.92 MB / 437.4 MB, free: 156 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003826/0.2911, allocations: 171.8 kB / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.2911, allocations: 0 / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001807/0.2912, allocations: 108.3 kB / 437.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004305/0.2917, allocations: 60.89 kB / 437.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004091/0.2958, allocations: 3.048 MB / 440.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.2962, allocations: 0.7751 MB / 441.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001358/0.2963, allocations: 34.28 kB / 441.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/0.2965, allocations: 107.4 kB / 441.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2965, allocations: 0 / 441.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03268/0.3292, allocations: 7.69 MB / 449.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.45, allocations: 11.03 kB / 449.4 MB, free: 4.184 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.443082123005297]