Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001513/0.001513, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001413/0.001413, allocations: 219.8 kB / 24.53 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 230.5 MB / 258.2 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 67.89 kB / 378.5 MB, free: 3.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2665, allocations: 53.41 MB / 432 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004488/0.271, allocations: 3.02 MB / 435 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.2724, allocations: 0.7478 MB / 435.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.2726, allocations: 7.938 kB / 435.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002288/0.2728, allocations: 63.38 kB / 435.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002876/0.2731, allocations: 111.1 kB / 435.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003386/0.2734, allocations: 99.83 kB / 436 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004673/0.2739, allocations: 426.2 kB / 436.4 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002753/0.2742, allocations: 142.4 kB / 436.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001866/0.2744, allocations: 163.4 kB / 436.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002706/0.2746, allocations: 183.2 kB / 436.9 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.922e-05/0.2747, allocations: 40 kB / 436.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.2748, allocations: 63.92 kB / 437 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.275, allocations: 107.7 kB / 437.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002078/0.2752, allocations: 199.1 kB / 437.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006323/0.2758, allocations: 0.5022 MB / 437.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2758, allocations: 4 kB / 437.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2758, allocations: 0 / 437.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.2759, allocations: 0 / 437.8 MB, free: 0.8594 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.001688/0.2775, allocations: 0.7195 MB / 438.5 MB, free: 108 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.2776, allocations: 12.03 kB / 438.5 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.653e-05/0.2776, allocations: 8.844 kB / 438.5 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.247e-05/0.2777, allocations: 66.72 kB / 438.6 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.689e-05/0.2778, allocations: 43.89 kB / 438.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004968/0.2783, allocations: 284.9 kB / 438.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.2783, allocations: 25.03 kB / 439 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.52e-05/0.2783, allocations: 33.12 kB / 439 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005722/0.2789, allocations: 345.8 kB / 439.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.2789, allocations: 0 / 439.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.698e-05/0.279, allocations: 19.94 kB / 439.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.279, allocations: 4 kB / 439.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004348/0.2794, allocations: 238.5 kB / 439.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.2813, allocations: 1.269 MB / 440.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003889/0.2817, allocations: 162.6 kB / 441 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002684/0.282, allocations: 112.8 kB / 441.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.011e-05/0.282, allocations: 4 kB / 441.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.282, allocations: 38.5 kB / 441.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.242e-06/0.282, allocations: 3.938 kB / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004975/0.2825, allocations: 232.4 kB / 441.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.179e-05/0.2826, allocations: 63.39 kB / 441.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003763/0.283, allocations: 316.2 kB / 441.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/0.283, allocations: 29.7 kB / 441.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.2831, allocations: 216.3 kB / 442 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.705e-05/0.2832, allocations: 63.47 kB / 442.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.525e-05/0.2833, allocations: 41.7 kB / 442.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.2835, allocations: 338.8 kB / 442.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.2836, allocations: 75.95 kB / 442.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.2838, allocations: 136.3 kB / 442.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/0.284, allocations: 162.1 kB / 442.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.284, allocations: 0 / 442.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004056/0.2844, allocations: 249.1 kB / 443 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.2845, allocations: 10.19 kB / 443.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.2845, allocations: 0 / 443.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.2845, allocations: 4 kB / 443.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.2847, allocations: 43.97 kB / 443.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.2847, allocations: 11.92 kB / 443.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003846/0.2851, allocations: 68.06 kB / 443.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.2851, allocations: 12 kB / 443.2 MB, free: 11.18 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.0001608/0.2852, allocations: 150.2 kB / 443.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.585e-05/0.2853, allocations: 35.73 kB / 443.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004012/0.2857, allocations: 195.8 kB / 443.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2857, allocations: 0 / 443.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2857, allocations: 0 / 443.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.2857, allocations: 3.984 kB / 443.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008296/0.2866, allocations: 0.6037 MB / 444.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2866, allocations: 0 / 444.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.2867, allocations: 31.92 kB / 444.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.2867, allocations: 3.984 kB / 444.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.2867, allocations: 11.98 kB / 444.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2867, allocations: 0 / 444.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2867, allocations: 0 / 444.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005125/0.2873, allocations: 379.9 kB / 444.6 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.752e-05/0.2873, allocations: 35.77 kB / 444.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.501e-05/0.2874, allocations: 11.92 kB / 444.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004041/0.2878, allocations: 55.92 kB / 444.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.2879, allocations: 75.94 kB / 444.8 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.288, allocations: 7.938 kB / 444.8 MB, free: 9.512 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003075/0.2883, allocations: 235.1 kB / 445 MB, free: 9.285 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2883, allocations: 0 / 445 MB, free: 9.285 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000368/0.2886, allocations: 87.78 kB / 445.1 MB, free: 9.199 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.0008683/0.2895, allocations: 0.92 MB / 446 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003523/0.2899, allocations: 175.7 kB / 446.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2899, allocations: 4 kB / 446.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001862/0.29, allocations: 103.9 kB / 446.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004192/0.2905, allocations: 52.27 kB / 446.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004358/0.2948, allocations: 3.05 MB / 449.4 MB, free: 4.738 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000431/0.2953, allocations: 0.7714 MB / 450.2 MB, free: 3.938 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00014/0.2954, allocations: 38.28 kB / 450.2 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.2956, allocations: 111.4 kB / 450.3 MB, free: 3.793 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2956, allocations: 4 kB / 450.3 MB, free: 3.789 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0315/0.3271, allocations: 7.655 MB / 458 MB, free: 12.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.6, allocations: 11.98 kB / 458 MB, free: 12.27 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.795165748975705]