Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.001674/0.001674, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001792/0.001792, allocations: 189.2 kB / 24.49 MB, free: 3.941 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.364/1.364, allocations: 225.7 MB / 253.3 MB, free: 12.81 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.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 51.92 kB / 371.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2632, allocations: 52.18 MB / 423.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006265/0.2695, allocations: 3.655 MB / 427 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00333/0.2728, allocations: 1.784 MB / 428.8 MB, free: 8.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004364/0.2732, allocations: 19.88 kB / 428.8 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001463/0.2747, allocations: 0.5719 MB / 429.4 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007225/0.2754, allocations: 346.3 kB / 429.7 MB, free: 8.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000721/0.2761, allocations: 299.2 kB / 430 MB, free: 7.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.2774, allocations: 0.9897 MB / 431 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004039/0.2778, allocations: 225.1 kB / 431.2 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004265/0.2782, allocations: 394.7 kB / 431.6 MB, free: 6.125 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006187/0.2788, allocations: 0.5099 MB / 432.1 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.2789, allocations: 80 kB / 432.2 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002565/0.2792, allocations: 132 kB / 432.3 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003849/0.2796, allocations: 470.7 kB / 432.8 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004968/0.2801, allocations: 0.4892 MB / 433.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001828/0.2819, allocations: 1.786 MB / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2819, allocations: 0 / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2819, allocations: 0 / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.225e-05/0.2819, allocations: 0 / 435 MB, free: 2.66 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.003009/0.2849, allocations: 1.784 MB / 436.8 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.285, allocations: 12.03 kB / 436.8 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.668e-05/0.285, allocations: 13.19 kB / 436.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001069/0.2851, allocations: 90.7 kB / 436.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002475/0.2854, allocations: 171.9 kB / 437.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001751/0.2871, allocations: 1.137 MB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001677/0.2873, allocations: 177.6 kB / 438.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.614e-05/0.2874, allocations: 48 kB / 438.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.2887, allocations: 1.015 MB / 439.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.2887, allocations: 0 / 439.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.564e-05/0.2888, allocations: 20 kB / 439.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.2888, allocations: 12 kB / 439.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007972/0.2896, allocations: 435.7 kB / 439.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004055/0.2937, allocations: 2.598 MB / 442.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009472/0.2946, allocations: 398.5 kB / 442.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006339/0.2952, allocations: 300 kB / 443.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.2953, allocations: 8 kB / 443.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.2953, allocations: 39.06 kB / 443.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.683e-06/0.2953, allocations: 0 / 443.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001815/0.2971, allocations: 0.6926 MB / 444 MB, free: 9.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/0.2973, allocations: 265 kB / 444.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003164/0.3004, allocations: 2.23 MB / 446.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.422e-05/0.3005, allocations: 37.7 kB / 446.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005856/0.3011, allocations: 0.6434 MB / 447.1 MB, free: 6.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.3012, allocations: 111.1 kB / 447.2 MB, free: 6.012 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.3013, allocations: 78.02 kB / 447.3 MB, free: 5.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.3015, allocations: 329.9 kB / 447.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003443/0.3018, allocations: 160.6 kB / 447.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005645/0.3024, allocations: 0.4982 MB / 448.3 MB, free: 4.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006972/0.3031, allocations: 397.1 kB / 448.7 MB, free: 4.422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.3031, allocations: 0 / 448.7 MB, free: 4.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001358/0.3045, allocations: 0.6455 MB / 449.3 MB, free: 3.766 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.3045, allocations: 7.938 kB / 449.3 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.3045, allocations: 4 kB / 449.3 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002989/0.3048, allocations: 68.94 kB / 449.4 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003745/0.3052, allocations: 95.81 kB / 449.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001765/0.3069, allocations: 1.652 MB / 451.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004276/0.3074, allocations: 59.7 kB / 451.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.3074, allocations: 8 kB / 451.2 MB, free: 1.758 MB / 350.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.0005834/0.308, allocations: 493.5 kB / 451.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001894/0.3081, allocations: 143 kB / 451.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002162/0.3084, allocations: 157.5 kB / 452 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3084, allocations: 4 kB / 452 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.3084, allocations: 4.094 kB / 452 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.3084, allocations: 0 / 452 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002613/0.311, allocations: 1.49 MB / 453.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.311, allocations: 0 / 453.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003329/0.3113, allocations: 75.88 kB / 453.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001804/0.3115, allocations: 56.89 kB / 453.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.163e-05/0.3115, allocations: 15.92 kB / 453.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/0.3131, allocations: 1.61 MB / 455.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.3132, allocations: 3.984 kB / 455.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.3146, allocations: 0.8039 MB / 456 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000504/0.3151, allocations: 263 kB / 456.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.3152, allocations: 8 kB / 456.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004403/0.3157, allocations: 47.95 kB / 456.4 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.572e-05/0.3158, allocations: 28.03 kB / 456.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.3158, allocations: 12 kB / 456.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002132/0.3179, allocations: 1.6 MB / 458 MB, free: 10.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3179, allocations: 0 / 458 MB, free: 10.74 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007221/0.3186, allocations: 203.7 kB / 458.2 MB, free: 10.54 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.003556/0.3222, allocations: 1.752 MB / 459.9 MB, free: 8.977 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.3233, allocations: 0.4902 MB / 460.4 MB, free: 8.473 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3233, allocations: 0 / 460.4 MB, free: 8.473 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005274/0.3238, allocations: 299.1 kB / 460.7 MB, free: 8.168 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009637/0.3248, allocations: 213 kB / 460.9 MB, free: 7.961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02062/0.3454, allocations: 13.86 MB / 474.8 MB, free: 9.848 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007883/0.3462, allocations: 0.6602 MB / 475.5 MB, free: 9.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005574/0.3467, allocations: 219.8 kB / 475.7 MB, free: 8.941 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006492/0.3474, allocations: 479.3 kB / 476.1 MB, free: 8.473 MB / 382.1 MB Notification: Performance of SimCode: time 1.313e-06/0.3474, allocations: 0 / 476.1 MB, free: 8.473 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07214/0.4195, allocations: 29.23 MB / 0.4935 GB, free: 11.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.08, allocations: 18.58 kB / 0.4935 GB, free: 11.45 MB / 414.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.289730201940984]