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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001206/0.001206, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001754, allocations: 59.91 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2508, allocations: 50.55 MB / 408.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004244/0.2551, allocations: 2.98 MB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.2564, allocations: 0.744 MB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000147/0.2566, allocations: 4 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002052/0.2568, allocations: 63.36 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000286/0.2571, allocations: 103.1 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003087/0.2574, allocations: 111.8 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004408/0.2579, allocations: 410.3 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003279/0.2582, allocations: 217.8 kB / 413.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.2584, allocations: 155.4 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002581/0.2587, allocations: 179.2 kB / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.723e-05/0.2587, allocations: 40 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.2589, allocations: 59.94 kB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001554/0.259, allocations: 111.7 kB / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001962/0.2592, allocations: 199 kB / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005649/0.2598, allocations: 0.4932 MB / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2598, allocations: 4 kB / 414.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.2598, allocations: 3.938 kB / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.2598, allocations: 0 / 414.7 MB, free: 11.58 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.001664/0.2615, allocations: 0.7987 MB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.2615, allocations: 12.03 kB / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.426e-05/0.2616, allocations: 62.72 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.623e-05/0.2617, allocations: 40.7 kB / 415.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004715/0.2622, allocations: 346.7 kB / 415.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.2622, allocations: 25.03 kB / 415.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.158e-05/0.2623, allocations: 28.38 kB / 416 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005738/0.2629, allocations: 358 kB / 416.3 MB, free: 9.824 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.2629, allocations: 0 / 416.3 MB, free: 9.824 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.356e-05/0.2629, allocations: 8 kB / 416.3 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.2629, allocations: 8 kB / 416.3 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004294/0.2634, allocations: 242.4 kB / 416.6 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.2652, allocations: 1.308 MB / 417.9 MB, free: 8.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000377/0.2656, allocations: 178.5 kB / 418 MB, free: 7.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002529/0.2658, allocations: 124.8 kB / 418.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.2659, allocations: 4.281 kB / 418.2 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.2659, allocations: 30.56 kB / 418.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.272e-06/0.2659, allocations: 0 / 418.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004831/0.2664, allocations: 237.3 kB / 418.4 MB, free: 7.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.2665, allocations: 55.41 kB / 418.5 MB, free: 7.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003581/0.2668, allocations: 323 kB / 418.8 MB, free: 7.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.2669, allocations: 29.64 kB / 418.8 MB, free: 7.164 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.267, allocations: 216.4 kB / 419 MB, free: 6.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.78e-05/0.2671, allocations: 51.58 kB / 419.1 MB, free: 6.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.2672, allocations: 49.66 kB / 419.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.2674, allocations: 338.8 kB / 419.5 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.2675, allocations: 71.95 kB / 419.5 MB, free: 6.434 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.2678, allocations: 143.6 kB / 419.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002515/0.268, allocations: 163.5 kB / 419.8 MB, free: 6.078 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.268, allocations: 0 / 419.8 MB, free: 6.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004084/0.2684, allocations: 251.7 kB / 420.1 MB, free: 5.828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.2685, allocations: 8 kB / 420.1 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2685, allocations: 0 / 420.1 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.2685, allocations: 4 kB / 420.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.2687, allocations: 43.92 kB / 420.1 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.2687, allocations: 4 kB / 420.1 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004017/0.2691, allocations: 67.77 kB / 420.2 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.228e-05/0.2691, allocations: 16.03 kB / 420.2 MB, free: 5.688 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.0001636/0.2693, allocations: 153.7 kB / 420.4 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.203e-05/0.2694, allocations: 27.81 kB / 420.4 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004001/0.2698, allocations: 211.4 kB / 420.6 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2698, allocations: 0 / 420.6 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2698, allocations: 0 / 420.6 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.2698, allocations: 0 / 420.6 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008551/0.2707, allocations: 0.632 MB / 421.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2707, allocations: 0 / 421.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/0.2709, allocations: 31.92 kB / 421.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.2709, allocations: 0 / 421.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.2709, allocations: 8 kB / 421.3 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.2709, allocations: 0 / 421.3 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2709, allocations: 0 / 421.3 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005164/0.2714, allocations: 384.5 kB / 421.7 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.835e-05/0.2715, allocations: 112.9 kB / 421.8 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.149e-05/0.2716, allocations: 4 kB / 421.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004184/0.272, allocations: 55.92 kB / 421.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001857/0.2722, allocations: 75.81 kB / 421.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.2722, allocations: 16 kB / 421.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002648/0.2725, allocations: 237.9 kB / 422.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2725, allocations: 0 / 422.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003446/0.2729, allocations: 83.78 kB / 422.2 MB, free: 3.57 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.0009429/0.2738, allocations: 0.9162 MB / 423.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003463/0.2742, allocations: 178.9 kB / 423.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2742, allocations: 0 / 423.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.2744, allocations: 107.9 kB / 423.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.2748, allocations: 59.58 kB / 423.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004367/0.2791, allocations: 3.046 MB / 426.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/0.2796, allocations: 0.7753 MB / 427.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001404/0.2798, allocations: 42.2 kB / 427.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.28, allocations: 107.4 kB / 427.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.28, allocations: 0 / 427.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03505/0.315, allocations: 7.383 MB / 434.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.256/8.571, allocations: 8 kB / 434.8 MB, free: 6.918 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) 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) Reference file matches