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.001246/0.001246, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001296/0.001296, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.412/1.412, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.001673/0.001673, allocations: 43.94 kB / 371.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2853, allocations: 52.2 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006165/0.2914, allocations: 4.033 MB / 427.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003164/0.2946, allocations: 1.932 MB / 429.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002512/0.2949, allocations: 15.88 kB / 429.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001306/0.2962, allocations: 0.5875 MB / 430 MB, free: 8.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006379/0.2968, allocations: 350.3 kB / 430.3 MB, free: 7.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007219/0.2975, allocations: 298.3 kB / 430.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00119/0.2987, allocations: 0.9858 MB / 431.6 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004132/0.2991, allocations: 229 kB / 431.8 MB, free: 6.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000457/0.2996, allocations: 390.7 kB / 432.2 MB, free: 5.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006462/0.3002, allocations: 0.5099 MB / 432.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.3003, allocations: 80 kB / 432.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002461/0.3006, allocations: 132 kB / 432.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004107/0.301, allocations: 474.7 kB / 433.4 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005871/0.3016, allocations: 0.629 MB / 434 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001856/0.3034, allocations: 1.767 MB / 435.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3034, allocations: 0 / 435.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3034, allocations: 4 kB / 435.8 MB, free: 2.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.47e-05/0.3035, allocations: 0 / 435.8 MB, free: 2.184 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.003117/0.3066, allocations: 1.785 MB / 437.6 MB, free: 364 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.3066, allocations: 12.03 kB / 437.6 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.493e-05/0.3067, allocations: 17.12 kB / 437.6 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001195/0.3068, allocations: 98.64 kB / 437.7 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002633/0.307, allocations: 167.9 kB / 437.9 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/0.3089, allocations: 1.126 MB / 439 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001688/0.3091, allocations: 181.6 kB / 439.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.979e-05/0.3092, allocations: 48 kB / 439.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.3102, allocations: 0.6557 MB / 439.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.3103, allocations: 4 kB / 439.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.244e-05/0.3103, allocations: 20 kB / 439.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.3103, allocations: 12 kB / 439.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000832/0.3112, allocations: 435.7 kB / 440.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004536/0.3157, allocations: 2.828 MB / 443.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.3167, allocations: 394.5 kB / 443.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006563/0.3174, allocations: 296.1 kB / 443.8 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.3174, allocations: 4 kB / 443.8 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/0.3175, allocations: 47.05 kB / 443.9 MB, free: 9.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.493e-06/0.3175, allocations: 0 / 443.9 MB, free: 9.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001846/0.3193, allocations: 0.6925 MB / 444.6 MB, free: 9.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001617/0.3195, allocations: 265 kB / 444.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00285/0.3223, allocations: 2.234 MB / 447.1 MB, free: 6.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.255e-05/0.3224, allocations: 33.7 kB / 447.1 MB, free: 6.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006132/0.323, allocations: 0.6396 MB / 447.7 MB, free: 5.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.3231, allocations: 111 kB / 447.8 MB, free: 5.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.3232, allocations: 78.03 kB / 447.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3234, allocations: 325.9 kB / 448.2 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003556/0.3237, allocations: 160.7 kB / 448.4 MB, free: 5.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004825/0.3242, allocations: 296.6 kB / 448.7 MB, free: 4.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007438/0.325, allocations: 409 kB / 449.1 MB, free: 4.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.325, allocations: 0 / 449.1 MB, free: 4.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001423/0.3264, allocations: 0.6417 MB / 449.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.3264, allocations: 11.94 kB / 449.7 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.3264, allocations: 7.875 kB / 449.7 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003068/0.3267, allocations: 68.8 kB / 449.8 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004113/0.3271, allocations: 96 kB / 449.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001831/0.329, allocations: 1.66 MB / 451.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004738/0.3294, allocations: 51.75 kB / 451.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.272e-05/0.3295, allocations: 16.09 kB / 451.6 MB, free: 1.734 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.0007003/0.3302, allocations: 485.5 kB / 452.1 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002055/0.3304, allocations: 158.9 kB / 452.3 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002149/0.3306, allocations: 157.5 kB / 452.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3306, allocations: 4 kB / 452.4 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.3306, allocations: 0 / 452.4 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3306, allocations: 0 / 452.4 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002797/0.3334, allocations: 1.631 MB / 454 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3334, allocations: 0 / 454 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003342/0.3337, allocations: 63.95 kB / 454.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002069/0.3339, allocations: 64.81 kB / 454.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.828e-05/0.334, allocations: 11.94 kB / 454.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001716/0.3357, allocations: 1.618 MB / 455.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3357, allocations: 4.031 kB / 455.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/0.3373, allocations: 0.8039 MB / 456.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005793/0.3378, allocations: 263 kB / 456.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.338, allocations: 11.98 kB / 456.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004555/0.3384, allocations: 47.95 kB / 456.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.324e-05/0.3385, allocations: 23.95 kB / 456.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-05/0.3385, allocations: 12 kB / 457 MB, free: 12.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002373/0.3409, allocations: 1.6 MB / 458.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3409, allocations: 0 / 458.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000878/0.3418, allocations: 207.7 kB / 458.8 MB, free: 10.37 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.003861/0.3456, allocations: 1.711 MB / 460.5 MB, free: 8.812 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.3469, allocations: 0.4903 MB / 461 MB, free: 8.309 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3469, allocations: 0 / 461 MB, free: 8.309 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000584/0.3475, allocations: 299.1 kB / 461.3 MB, free: 8.004 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.3487, allocations: 222.6 kB / 461.5 MB, free: 7.789 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02086/0.3696, allocations: 13.86 MB / 475.3 MB, free: 9.668 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.3707, allocations: 1.256 MB / 476.6 MB, free: 8.387 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005444/0.3713, allocations: 223.8 kB / 476.8 MB, free: 8.164 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007511/0.372, allocations: 479.3 kB / 477.3 MB, free: 7.695 MB / 382.1 MB Notification: Performance of SimCode: time 8.91e-07/0.372, allocations: 0 / 477.3 MB, free: 7.695 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06848/0.4405, allocations: 28.35 MB / 0.4938 GB, free: 11.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.64/15.08, allocations: 21.58 kB / 0.4938 GB, free: 11.53 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.38494699000148]