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.001884/0.001884, allocations: 101.5 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.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.001822/0.001822, allocations: 188.9 kB / 24.49 MB, free: 3.98 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.398/1.398, allocations: 225.7 MB / 253.3 MB, free: 12.86 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.001437/0.001437, allocations: 43.92 kB / 371.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2497, allocations: 52.19 MB / 423.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004319/0.254, allocations: 2.772 MB / 426.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00125/0.2553, allocations: 0.6855 MB / 426.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.2554, allocations: 12 kB / 426.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001998/0.2556, allocations: 59.38 kB / 426.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002606/0.2559, allocations: 111.1 kB / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.2562, allocations: 107.8 kB / 427.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005176/0.2567, allocations: 414.3 kB / 427.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002966/0.257, allocations: 154.3 kB / 427.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.2572, allocations: 167.4 kB / 427.8 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002624/0.2575, allocations: 187.2 kB / 428 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.259e-05/0.2575, allocations: 40 kB / 428 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.2576, allocations: 55.94 kB / 428.1 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.2578, allocations: 111.6 kB / 428.2 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001849/0.258, allocations: 171.2 kB / 428.4 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005837/0.2586, allocations: 0.498 MB / 428.9 MB, free: 8.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2586, allocations: 0 / 428.9 MB, free: 8.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2586, allocations: 3.938 kB / 428.9 MB, free: 8.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.2586, allocations: 4 kB / 428.9 MB, free: 8.848 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.001696/0.2603, allocations: 0.7273 MB / 429.6 MB, free: 8.086 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.2603, allocations: 8.031 kB / 429.6 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.313e-05/0.2603, allocations: 8.844 kB / 429.6 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.512e-05/0.2604, allocations: 74.72 kB / 429.7 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.271e-05/0.2605, allocations: 40.7 kB / 429.7 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004922/0.261, allocations: 280.9 kB / 430 MB, free: 7.652 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.261, allocations: 25.03 kB / 430 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.264e-05/0.2611, allocations: 32.38 kB / 430 MB, free: 7.598 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006252/0.2617, allocations: 397.2 kB / 430.4 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.2617, allocations: 4 kB / 430.4 MB, free: 7.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.73e-05/0.2617, allocations: 15.94 kB / 430.5 MB, free: 7.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.2618, allocations: 8 kB / 430.5 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004303/0.2622, allocations: 238.5 kB / 430.7 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.264, allocations: 1.16 MB / 431.9 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003858/0.2644, allocations: 170.4 kB / 432 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.2647, allocations: 116.8 kB / 432.1 MB, free: 5.395 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.2647, allocations: 4 kB / 432.1 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/0.2647, allocations: 34.56 kB / 432.2 MB, free: 5.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.613e-06/0.2647, allocations: 0 / 432.2 MB, free: 5.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004943/0.2652, allocations: 229.6 kB / 432.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/0.2653, allocations: 55.41 kB / 432.5 MB, free: 5.051 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000373/0.2657, allocations: 320.2 kB / 432.8 MB, free: 4.727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.2657, allocations: 29.7 kB / 432.8 MB, free: 4.691 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.2659, allocations: 212.4 kB / 433 MB, free: 4.477 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.701e-05/0.2659, allocations: 63.52 kB / 433.1 MB, free: 4.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.463e-05/0.266, allocations: 41.72 kB / 433.1 MB, free: 4.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.2662, allocations: 334.8 kB / 433.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.2663, allocations: 71.95 kB / 433.5 MB, free: 3.961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.2665, allocations: 135.7 kB / 433.6 MB, free: 3.801 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.2667, allocations: 170.1 kB / 433.8 MB, free: 3.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.2667, allocations: 3.938 kB / 433.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004277/0.2672, allocations: 241.2 kB / 434 MB, free: 3.363 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.2672, allocations: 8 kB / 434 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.2672, allocations: 0 / 434 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.2672, allocations: 4 kB / 434.1 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.2674, allocations: 52.17 kB / 434.1 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.2674, allocations: 7.984 kB / 434.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003616/0.2678, allocations: 63.72 kB / 434.2 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.086e-05/0.2678, allocations: 12 kB / 434.2 MB, free: 3.219 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.0001669/0.268, allocations: 161.6 kB / 434.3 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.835e-05/0.268, allocations: 23.86 kB / 434.4 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004093/0.2684, allocations: 207.1 kB / 434.6 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2684, allocations: 3.938 kB / 434.6 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2684, allocations: 0 / 434.6 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2685, allocations: 0 / 434.6 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000827/0.2693, allocations: 0.5608 MB / 435.1 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.2693, allocations: 0 / 435.1 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.2694, allocations: 31.98 kB / 435.2 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.2694, allocations: 0 / 435.2 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.2695, allocations: 4 kB / 435.2 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.2695, allocations: 4 kB / 435.2 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.2695, allocations: 3.969 kB / 435.2 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005422/0.27, allocations: 388 kB / 435.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.15e-05/0.2701, allocations: 35.81 kB / 435.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.351e-05/0.2701, allocations: 0 / 435.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004017/0.2705, allocations: 55.92 kB / 435.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001835/0.2707, allocations: 75.8 kB / 435.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.2707, allocations: 12.06 kB / 435.7 MB, free: 1.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002794/0.271, allocations: 239.1 kB / 436 MB, free: 1.359 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.271, allocations: 0 / 436 MB, free: 1.359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000381/0.2714, allocations: 83.78 kB / 436 MB, free: 1.277 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.0008928/0.2723, allocations: 0.9161 MB / 437 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003562/0.2726, allocations: 171.5 kB / 437.1 MB, free: 168 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2726, allocations: 0 / 437.1 MB, free: 168 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.2728, allocations: 108.4 kB / 437.2 MB, free: 60 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004463/0.2733, allocations: 60.95 kB / 437.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004124/0.2774, allocations: 3.045 MB / 440.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001873/0.2776, allocations: 172.7 kB / 440.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001487/0.2777, allocations: 42.28 kB / 440.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.2779, allocations: 103.4 kB / 440.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.2779, allocations: 0 / 440.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03229/0.3102, allocations: 7.944 MB / 448.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.51, allocations: 15.31 kB / 448.6 MB, free: 4.75 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.381845189025626]