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.001553/0.001553, allocations: 122.8 kB / 17.79 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.00189/0.00189, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2918, allocations: 50.54 MB / 408.7 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00401/0.2959, allocations: 2.976 MB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.2975, allocations: 0.7401 MB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000303/0.2978, allocations: 7.938 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002913/0.2981, allocations: 59.44 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004114/0.2985, allocations: 107.1 kB / 412.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004205/0.299, allocations: 103.8 kB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004497/0.2994, allocations: 426.2 kB / 413.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003311/0.2998, allocations: 203.5 kB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.2999, allocations: 159.4 kB / 413.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002777/0.3002, allocations: 191.1 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.594e-05/0.3003, allocations: 40 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.3004, allocations: 52 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.3006, allocations: 107.6 kB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.3007, allocations: 199.1 kB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000481/0.3012, allocations: 0.4905 MB / 414.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3012, allocations: 0 / 414.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3012, allocations: 3.938 kB / 414.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.3013, allocations: 3.938 kB / 414.6 MB, free: 11.64 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.001652/0.3029, allocations: 0.7874 MB / 415.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.303, allocations: 12.03 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.854e-05/0.3031, allocations: 70.67 kB / 415.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.898e-05/0.3031, allocations: 44.45 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005477/0.3037, allocations: 342.6 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.3037, allocations: 25.03 kB / 415.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.403e-05/0.3038, allocations: 28.38 kB / 415.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005621/0.3043, allocations: 350 kB / 416.2 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.3044, allocations: 4 kB / 416.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.3044, allocations: 12 kB / 416.2 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.3044, allocations: 8 kB / 416.2 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00039/0.3048, allocations: 238.5 kB / 416.5 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001695/0.3065, allocations: 1.299 MB / 417.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003637/0.3069, allocations: 182.4 kB / 417.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002469/0.3072, allocations: 128.8 kB / 418.1 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.609e-05/0.3072, allocations: 7.984 kB / 418.1 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.3072, allocations: 30.56 kB / 418.1 MB, free: 7.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.3072, allocations: 0 / 418.1 MB, free: 7.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004454/0.3077, allocations: 229.3 kB / 418.3 MB, free: 7.664 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.3077, allocations: 51.69 kB / 418.4 MB, free: 7.602 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003189/0.3081, allocations: 319 kB / 418.7 MB, free: 7.281 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.3081, allocations: 33.64 kB / 418.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.3082, allocations: 212 kB / 418.9 MB, free: 7.031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.263e-05/0.3083, allocations: 55.14 kB / 419 MB, free: 6.977 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.925e-05/0.3084, allocations: 45.7 kB / 419 MB, free: 6.926 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3085, allocations: 338.8 kB / 419.4 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.3086, allocations: 67.95 kB / 419.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.3088, allocations: 139.6 kB / 419.6 MB, free: 6.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002115/0.309, allocations: 167.5 kB / 419.7 MB, free: 6.164 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.309, allocations: 4 kB / 419.7 MB, free: 6.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003654/0.3094, allocations: 243.5 kB / 420 MB, free: 5.918 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.3094, allocations: 4 kB / 420 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.3094, allocations: 4.25 kB / 420 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.3095, allocations: 8 kB / 420 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.3096, allocations: 43.91 kB / 420 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.3096, allocations: 4 kB / 420 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003722/0.31, allocations: 63.77 kB / 420.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.929e-05/0.3101, allocations: 16 kB / 420.1 MB, free: 5.777 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.000152/0.3102, allocations: 161.6 kB / 420.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.613e-05/0.3103, allocations: 31.7 kB / 420.3 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003811/0.3107, allocations: 198.8 kB / 420.5 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.3107, allocations: 3.938 kB / 420.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3107, allocations: 4 kB / 420.5 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.3107, allocations: 3.984 kB / 420.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007151/0.3114, allocations: 0.6241 MB / 421.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3114, allocations: 0 / 421.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.3116, allocations: 36 kB / 421.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.3116, allocations: 4 kB / 421.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.3116, allocations: 0 / 421.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3116, allocations: 0 / 421.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3116, allocations: 4 kB / 421.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004633/0.3121, allocations: 388.2 kB / 421.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.323e-05/0.3122, allocations: 104.8 kB / 421.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.082e-05/0.3123, allocations: 8.062 kB / 421.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004039/0.3127, allocations: 51.92 kB / 421.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.3128, allocations: 79.88 kB / 421.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.3129, allocations: 7.938 kB / 421.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002209/0.3131, allocations: 233.9 kB / 422 MB, free: 3.746 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3131, allocations: 4 kB / 422 MB, free: 3.742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003477/0.3135, allocations: 83.69 kB / 422.1 MB, free: 3.66 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.0007844/0.3142, allocations: 0.9184 MB / 423 MB, free: 2.711 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003326/0.3146, allocations: 187.9 kB / 423.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3146, allocations: 0 / 423.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001688/0.3148, allocations: 107.9 kB / 423.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.3152, allocations: 60.73 kB / 423.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003957/0.3192, allocations: 3.032 MB / 426.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.3196, allocations: 0.7791 MB / 427.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001531/0.3197, allocations: 34.28 kB / 427.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001893/0.3199, allocations: 107.4 kB / 427.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3199, allocations: 0 / 427.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02893/0.3489, allocations: 7.54 MB / 434.9 MB, free: 6.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.803/8.152, allocations: 8 kB / 434.9 MB, free: 6.859 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.0.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