Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.001894/0.001894, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002447/0.002447, allocations: 212.7 kB / 24.52 MB, free: 3.91 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.453/1.453, allocations: 230.5 MB / 258.2 MB, free: 7.781 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.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 64.09 kB / 378.5 MB, free: 2.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2543, allocations: 53.41 MB / 431.9 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005812/0.2601, allocations: 3.696 MB / 435.6 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003196/0.2633, allocations: 1.943 MB / 437.5 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002575/0.2636, allocations: 11.94 kB / 437.6 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.2648, allocations: 0.5642 MB / 438.1 MB, free: 248 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006797/0.2655, allocations: 402 kB / 438.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005783/0.2661, allocations: 283.5 kB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001069/0.2671, allocations: 0.9964 MB / 439.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003853/0.2675, allocations: 225 kB / 440 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004053/0.2679, allocations: 402.7 kB / 440.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005854/0.2685, allocations: 0.5061 MB / 440.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.2686, allocations: 84 kB / 441 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002436/0.2689, allocations: 136 kB / 441.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000395/0.2693, allocations: 478.6 kB / 441.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004884/0.2698, allocations: 497 kB / 442.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001762/0.2715, allocations: 1.782 MB / 443.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.2715, allocations: 4 kB / 443.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2715, allocations: 0 / 443.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.2716, allocations: 0 / 443.9 MB, free: 10.48 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002903/0.2745, allocations: 1.796 MB / 445.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.2745, allocations: 8.031 kB / 445.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.897e-05/0.2745, allocations: 17.19 kB / 445.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001179/0.2747, allocations: 94.7 kB / 445.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002472/0.2749, allocations: 167.9 kB / 445.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.2766, allocations: 1.134 MB / 447.1 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/0.2767, allocations: 170.1 kB / 447.2 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.63e-05/0.2768, allocations: 60.02 kB / 447.3 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.2781, allocations: 1.011 MB / 448.3 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.2781, allocations: 0 / 448.3 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.487e-05/0.2782, allocations: 27.94 kB / 448.3 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.2782, allocations: 12 kB / 448.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007802/0.279, allocations: 439.7 kB / 448.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00399/0.283, allocations: 2.61 MB / 451.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009386/0.2839, allocations: 390.5 kB / 451.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006282/0.2845, allocations: 295.7 kB / 452.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.2846, allocations: 4 kB / 452.1 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.2846, allocations: 38.56 kB / 452.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.824e-06/0.2846, allocations: 0 / 452.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001826/0.2864, allocations: 0.7015 MB / 452.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.2866, allocations: 265 kB / 453.1 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002811/0.2894, allocations: 2.246 MB / 455.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.015e-05/0.2894, allocations: 37.7 kB / 455.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006278/0.2901, allocations: 0.6474 MB / 456 MB, free: 13.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.2902, allocations: 107.1 kB / 456.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.2903, allocations: 78.03 kB / 456.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.2905, allocations: 325.9 kB / 456.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003424/0.2908, allocations: 164.6 kB / 456.6 MB, free: 13.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005727/0.2914, allocations: 0.4982 MB / 457.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007075/0.2921, allocations: 396.7 kB / 457.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.2921, allocations: 0 / 457.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001388/0.2935, allocations: 0.6414 MB / 458.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.2935, allocations: 8 kB / 458.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.2935, allocations: 12.06 kB / 458.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003054/0.2938, allocations: 64.75 kB / 458.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003892/0.2942, allocations: 95.81 kB / 458.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/0.296, allocations: 1.664 MB / 460 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004661/0.2964, allocations: 51.75 kB / 460.1 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.851e-05/0.2965, allocations: 16 kB / 460.1 MB, free: 9.527 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0006696/0.2971, allocations: 489.6 kB / 460.6 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/0.2974, allocations: 147 kB / 460.7 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002218/0.2976, allocations: 165.6 kB / 460.9 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.2976, allocations: 7.938 kB / 460.9 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.2976, allocations: 0 / 460.9 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2976, allocations: 0 / 460.9 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002796/0.3004, allocations: 1.489 MB / 462.4 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3004, allocations: 3.938 kB / 462.4 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003275/0.3007, allocations: 76 kB / 462.4 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001789/0.3009, allocations: 56.77 kB / 462.5 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.189e-05/0.3009, allocations: 11.98 kB / 462.5 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001581/0.3025, allocations: 1.605 MB / 464.1 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3025, allocations: 3.938 kB / 464.1 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.3039, allocations: 0.8027 MB / 464.9 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000511/0.3045, allocations: 262.9 kB / 465.2 MB, free: 4.203 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.3046, allocations: 16 kB / 465.2 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004419/0.305, allocations: 43.95 kB / 465.2 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.958e-05/0.3051, allocations: 31.94 kB / 465.3 MB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.3051, allocations: 8 kB / 465.3 MB, free: 4.105 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002198/0.3073, allocations: 1.608 MB / 466.9 MB, free: 2.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3073, allocations: 0 / 466.9 MB, free: 2.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007897/0.3081, allocations: 207.7 kB / 467.1 MB, free: 2.297 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003642/0.3118, allocations: 1.745 MB / 468.8 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.3129, allocations: 490.7 kB / 469.3 MB, free: 208 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/0.3129, allocations: 7.906 kB / 469.3 MB, free: 200 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005982/0.3135, allocations: 302.4 kB / 469.6 MB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.3145, allocations: 208.3 kB / 469.8 MB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0221/0.3366, allocations: 13.9 MB / 483.7 MB, free: 1.539 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008212/0.3374, allocations: 0.6643 MB / 484.4 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005745/0.338, allocations: 215.8 kB / 484.6 MB, free: 0.6328 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006698/0.3386, allocations: 479.3 kB / 485.1 MB, free: 168 kB / 382.1 MB Notification: Performance of SimCode: time 1.793e-06/0.3386, allocations: 0 / 485.1 MB, free: 168 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06811/0.4068, allocations: 29.31 MB / 0.5023 GB, free: 3.012 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.08/15.49, allocations: 11.83 kB / 0.5023 GB, free: 3.004 MB / 414.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.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: 19.88706973497756]