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.001324/0.001324, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002136/0.002136, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 7.785 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 47.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2674, allocations: 53.38 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00456/0.272, allocations: 2.781 MB / 433.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.2734, allocations: 0.7167 MB / 434.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.2735, allocations: 7.938 kB / 434.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002093/0.2738, allocations: 63.42 kB / 434.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002564/0.274, allocations: 111.1 kB / 434.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.2743, allocations: 115.7 kB / 434.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004418/0.2748, allocations: 406.3 kB / 435.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.2751, allocations: 146.4 kB / 435.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.2752, allocations: 171.4 kB / 435.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002662/0.2755, allocations: 179.2 kB / 435.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.64e-05/0.2755, allocations: 40 kB / 435.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.2757, allocations: 59.98 kB / 435.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.2758, allocations: 111.7 kB / 436 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.276, allocations: 175.2 kB / 436.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005657/0.2766, allocations: 0.4941 MB / 436.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2766, allocations: 0 / 436.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.2766, allocations: 0 / 436.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.2766, allocations: 4 kB / 436.6 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.001665/0.2783, allocations: 0.7233 MB / 437.4 MB, free: 308 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.2783, allocations: 8.031 kB / 437.4 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.1e-05/0.2784, allocations: 70.72 kB / 437.4 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.537e-05/0.2785, allocations: 40.7 kB / 437.5 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005786/0.2791, allocations: 285.5 kB / 437.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/0.2791, allocations: 33.02 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.16e-05/0.2792, allocations: 28.38 kB / 437.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006334/0.2798, allocations: 392.9 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.2798, allocations: 0 / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.2798, allocations: 16 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.2798, allocations: 8 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004223/0.2803, allocations: 246.4 kB / 438.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001868/0.2821, allocations: 1.164 MB / 439.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003784/0.2825, allocations: 166.5 kB / 439.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/0.2828, allocations: 116.8 kB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.215e-05/0.2828, allocations: 4 kB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.2828, allocations: 38.56 kB / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.2828, allocations: 0 / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005006/0.2833, allocations: 231.5 kB / 440.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.2834, allocations: 51.41 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003733/0.2838, allocations: 324.2 kB / 440.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.2838, allocations: 25.7 kB / 440.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.284, allocations: 212.4 kB / 440.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.337e-05/0.284, allocations: 59.48 kB / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.923e-05/0.2841, allocations: 49.64 kB / 440.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.2843, allocations: 342.8 kB / 441.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.2844, allocations: 63.97 kB / 441.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.2846, allocations: 143.6 kB / 441.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002322/0.2848, allocations: 163.6 kB / 441.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2848, allocations: 0 / 441.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004002/0.2852, allocations: 248 kB / 441.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.2853, allocations: 8 kB / 441.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.2853, allocations: 3.984 kB / 441.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.2853, allocations: 4 kB / 441.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.2855, allocations: 47.91 kB / 441.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.2855, allocations: 4 kB / 441.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000374/0.2859, allocations: 68 kB / 441.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.174e-05/0.2859, allocations: 12 kB / 442 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.0001531/0.286, allocations: 153.7 kB / 442.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.96e-05/0.2861, allocations: 27.81 kB / 442.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004126/0.2865, allocations: 203.6 kB / 442.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2865, allocations: 0 / 442.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2865, allocations: 0 / 442.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.2865, allocations: 3.938 kB / 442.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008847/0.2874, allocations: 0.5639 MB / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2874, allocations: 0 / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.2876, allocations: 35.98 kB / 442.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2876, allocations: 0 / 442.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.998e-05/0.2876, allocations: 4 kB / 442.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.2876, allocations: 0 / 442.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.2876, allocations: 3.938 kB / 442.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000528/0.2881, allocations: 380.5 kB / 443.3 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.232e-05/0.2882, allocations: 31.8 kB / 443.3 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.761e-05/0.2883, allocations: 4 kB / 443.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004009/0.2887, allocations: 56.02 kB / 443.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.2889, allocations: 83.8 kB / 443.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.2889, allocations: 8 kB / 443.5 MB, free: 9.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002672/0.2891, allocations: 235.1 kB / 443.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2891, allocations: 0 / 443.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004124/0.2896, allocations: 83.78 kB / 443.8 MB, free: 9.492 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.0009495/0.2905, allocations: 0.92 MB / 444.7 MB, free: 8.539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003942/0.2909, allocations: 183.7 kB / 444.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2909, allocations: 0 / 444.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.2911, allocations: 102.7 kB / 445 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.2915, allocations: 67.47 kB / 445.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004312/0.2958, allocations: 3.033 MB / 448.1 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/0.2961, allocations: 172.8 kB / 448.3 MB, free: 4.844 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001804/0.2963, allocations: 38.27 kB / 448.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.2964, allocations: 107.4 kB / 448.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2964, allocations: 0 / 448.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04204/0.3385, allocations: 8.402 MB / 456.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.42, allocations: 20.02 kB / 456.8 MB, free: 12.47 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: 15.92839641100727]