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.001913/0.001913, allocations: 112.2 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.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.002377/0.002377, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.385/1.385, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.001454/0.001454, allocations: 43.94 kB / 378.5 MB, free: 3.246 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2975, allocations: 53.37 MB / 431.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004507/0.302, allocations: 3.013 MB / 434.9 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.3034, allocations: 0.7555 MB / 435.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00017/0.3035, allocations: 11.94 kB / 435.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002162/0.3038, allocations: 59.42 kB / 435.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002585/0.304, allocations: 111.1 kB / 435.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.3044, allocations: 107.8 kB / 436 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004484/0.3048, allocations: 410.3 kB / 436.4 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002723/0.3051, allocations: 155.5 kB / 436.5 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.3053, allocations: 163.4 kB / 436.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002673/0.3055, allocations: 183.2 kB / 436.9 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.593e-05/0.3056, allocations: 40 kB / 436.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.3057, allocations: 59.98 kB / 437 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.3059, allocations: 111.6 kB / 437.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.306, allocations: 203.1 kB / 437.3 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005661/0.3066, allocations: 0.4977 MB / 437.8 MB, free: 1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.3066, allocations: 0 / 437.8 MB, free: 1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3066, allocations: 4 kB / 437.8 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.3066, allocations: 0 / 437.8 MB, free: 0.9961 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.001728/0.3084, allocations: 0.7234 MB / 438.5 MB, free: 244 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.3084, allocations: 8.031 kB / 438.5 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.281e-05/0.3084, allocations: 8.844 kB / 438.5 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.799e-05/0.3085, allocations: 70.72 kB / 438.6 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.3086, allocations: 40.7 kB / 438.6 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006353/0.3093, allocations: 284.9 kB / 438.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.3093, allocations: 29.02 kB / 438.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.532e-05/0.3093, allocations: 32.38 kB / 438.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006243/0.31, allocations: 349.8 kB / 439.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.31, allocations: 0 / 439.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.107e-05/0.31, allocations: 16 kB / 439.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.31, allocations: 11.94 kB / 439.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004408/0.3105, allocations: 230.5 kB / 439.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.3125, allocations: 1.257 MB / 440.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003989/0.3129, allocations: 174.4 kB / 441 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/0.3131, allocations: 114.6 kB / 441.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.06e-05/0.3132, allocations: 7.938 kB / 441.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.3132, allocations: 30.56 kB / 441.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.503e-06/0.3132, allocations: 4 kB / 441.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005339/0.3137, allocations: 237.6 kB / 441.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.3138, allocations: 55.41 kB / 441.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003975/0.3142, allocations: 324.2 kB / 441.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.3142, allocations: 25.7 kB / 441.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001717/0.3144, allocations: 216.4 kB / 442 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.142e-05/0.3144, allocations: 51.53 kB / 442 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.536e-05/0.3145, allocations: 49.66 kB / 442.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.3147, allocations: 334.8 kB / 442.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.3148, allocations: 75.95 kB / 442.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002015/0.315, allocations: 139.6 kB / 442.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.3153, allocations: 165.9 kB / 442.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.3153, allocations: 3.938 kB / 442.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004084/0.3157, allocations: 241.3 kB / 443 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.3157, allocations: 4 kB / 443 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.3157, allocations: 4 kB / 443 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.3158, allocations: 4 kB / 443 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.3159, allocations: 43.91 kB / 443.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.3159, allocations: 4 kB / 443.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003851/0.3163, allocations: 71.95 kB / 443.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.017e-05/0.3164, allocations: 12 kB / 443.1 MB, free: 11.32 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.0001688/0.3165, allocations: 157.7 kB / 443.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.759e-05/0.3166, allocations: 23.86 kB / 443.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000409/0.317, allocations: 206.3 kB / 443.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.317, allocations: 4 kB / 443.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.317, allocations: 0 / 443.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.317, allocations: 3.984 kB / 443.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008483/0.3179, allocations: 0.5998 MB / 444.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3179, allocations: 4 kB / 444.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.318, allocations: 23.98 kB / 444.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.318, allocations: 4 kB / 444.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.318, allocations: 4 kB / 444.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.318, allocations: 7.938 kB / 444.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.318, allocations: 0 / 444.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005224/0.3186, allocations: 384.5 kB / 444.5 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.104e-05/0.3186, allocations: 35.77 kB / 444.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.984e-05/0.3187, allocations: 4 kB / 444.6 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003951/0.3191, allocations: 55.92 kB / 444.6 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001835/0.3193, allocations: 79.86 kB / 444.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.3193, allocations: 12 kB / 444.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002559/0.3195, allocations: 235.1 kB / 445 MB, free: 9.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3195, allocations: 0 / 445 MB, free: 9.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003663/0.3199, allocations: 87.78 kB / 445 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.0008664/0.3208, allocations: 0.919 MB / 446 MB, free: 8.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003646/0.3211, allocations: 174.9 kB / 446.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3211, allocations: 0 / 446.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001753/0.3213, allocations: 99.88 kB / 446.2 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.3217, allocations: 57.52 kB / 446.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004137/0.3259, allocations: 3.054 MB / 449.3 MB, free: 4.871 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004003/0.3263, allocations: 0.7713 MB / 450.1 MB, free: 4.074 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001422/0.3264, allocations: 42.28 kB / 450.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/0.3266, allocations: 107.4 kB / 450.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3266, allocations: 0 / 450.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03164/0.3583, allocations: 7.665 MB / 457.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.47, allocations: 11.45 kB / 457.9 MB, free: 12.45 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.377300617983565]