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.001727/0.001727, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.002001/0.002001, allocations: 181.3 kB / 23.72 MB, free: 4.699 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.464/1.464, allocations: 225.6 MB / 252.5 MB, free: 13.03 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 48.02 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2632, allocations: 52.19 MB / 422.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006216/0.2694, allocations: 4.037 MB / 426.7 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003224/0.2726, allocations: 1.925 MB / 428.6 MB, free: 8.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003302/0.2729, allocations: 15.88 kB / 428.6 MB, free: 8.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001328/0.2743, allocations: 0.5948 MB / 429.2 MB, free: 8.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006575/0.2749, allocations: 354.2 kB / 429.5 MB, free: 7.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006749/0.2756, allocations: 294.6 kB / 429.8 MB, free: 7.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.2767, allocations: 0.978 MB / 430.8 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004304/0.2772, allocations: 233 kB / 431 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004502/0.2776, allocations: 390.7 kB / 431.4 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006367/0.2783, allocations: 0.5099 MB / 431.9 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.2784, allocations: 80 kB / 432 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002575/0.2786, allocations: 132 kB / 432.1 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003894/0.279, allocations: 478.7 kB / 432.6 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006802/0.2797, allocations: 0.629 MB / 433.2 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001883/0.2816, allocations: 1.77 MB / 435 MB, free: 2.316 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2816, allocations: 0 / 435 MB, free: 2.316 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2816, allocations: 0 / 435 MB, free: 2.316 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.2816, allocations: 0 / 435 MB, free: 2.316 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.003113/0.2847, allocations: 1.785 MB / 436.8 MB, free: 500 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.2848, allocations: 12.03 kB / 436.8 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001288/0.2849, allocations: 98.64 kB / 436.9 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002294/0.2851, allocations: 163.9 kB / 437 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001858/0.287, allocations: 1.13 MB / 438.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001832/0.2872, allocations: 177.8 kB / 438.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.2e-05/0.2873, allocations: 48 kB / 438.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/0.2884, allocations: 0.6596 MB / 439.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.2884, allocations: 4 kB / 439.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.342e-05/0.2884, allocations: 20 kB / 439.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.2885, allocations: 12 kB / 439.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007893/0.2893, allocations: 435.7 kB / 439.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004442/0.2937, allocations: 2.828 MB / 442.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009656/0.2947, allocations: 394.5 kB / 442.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006369/0.2953, allocations: 292.1 kB / 443 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.4e-05/0.2953, allocations: 11.98 kB / 443 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.2954, allocations: 39.06 kB / 443.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.964e-06/0.2954, allocations: 0 / 443.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001813/0.2972, allocations: 0.6965 MB / 443.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001765/0.2974, allocations: 269 kB / 444 MB, free: 8.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002857/0.3002, allocations: 2.234 MB / 446.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.451e-05/0.3003, allocations: 33.7 kB / 446.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005914/0.3009, allocations: 0.6357 MB / 446.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.301, allocations: 115 kB / 447 MB, free: 5.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.3011, allocations: 78.03 kB / 447.1 MB, free: 5.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3012, allocations: 321.9 kB / 447.4 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000347/0.3016, allocations: 168.6 kB / 447.6 MB, free: 5.324 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004624/0.302, allocations: 296.6 kB / 447.9 MB, free: 4.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007817/0.3028, allocations: 409 kB / 448.3 MB, free: 4.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3028, allocations: 0 / 448.3 MB, free: 4.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001382/0.3042, allocations: 0.6417 MB / 448.9 MB, free: 3.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.3042, allocations: 15.22 kB / 448.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.3042, allocations: 0 / 448.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003039/0.3045, allocations: 72.69 kB / 449 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000373/0.3049, allocations: 92.02 kB / 449.1 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001845/0.3068, allocations: 1.66 MB / 450.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004152/0.3072, allocations: 51.75 kB / 450.8 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.3072, allocations: 12.09 kB / 450.8 MB, free: 1.887 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.0006141/0.3078, allocations: 493.5 kB / 451.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.308, allocations: 143.1 kB / 451.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002101/0.3082, allocations: 165.4 kB / 451.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.3082, allocations: 4 kB / 451.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3082, allocations: 4.109 kB / 451.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.3082, allocations: 4 kB / 451.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002765/0.311, allocations: 1.626 MB / 453.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.311, allocations: 0 / 453.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.3113, allocations: 67.95 kB / 453.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001847/0.3115, allocations: 60.83 kB / 453.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.3115, allocations: 11.98 kB / 453.4 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001576/0.3131, allocations: 1.614 MB / 455 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3131, allocations: 7.969 kB / 455 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/0.3146, allocations: 0.8039 MB / 455.8 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006131/0.3152, allocations: 263 kB / 456.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.3154, allocations: 12 kB / 456.1 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004473/0.3158, allocations: 47.95 kB / 456.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.596e-05/0.3159, allocations: 28.06 kB / 456.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.588e-05/0.3159, allocations: 16 kB / 456.2 MB, free: 12.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002235/0.3181, allocations: 1.6 MB / 457.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3181, allocations: 0 / 457.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007487/0.3189, allocations: 203.7 kB / 458 MB, free: 10.52 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.003524/0.3224, allocations: 1.716 MB / 459.7 MB, free: 8.949 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.3236, allocations: 0.4903 MB / 460.2 MB, free: 8.445 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3236, allocations: 0 / 460.2 MB, free: 8.445 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005395/0.3241, allocations: 299.1 kB / 460.5 MB, free: 8.141 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009282/0.325, allocations: 205 kB / 460.7 MB, free: 7.941 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01998/0.345, allocations: 13.88 MB / 474.5 MB, free: 9.805 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/0.346, allocations: 1.252 MB / 475.8 MB, free: 8.527 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005268/0.3466, allocations: 223.8 kB / 476 MB, free: 8.305 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006437/0.3472, allocations: 467.3 kB / 476.5 MB, free: 7.848 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3472, allocations: 0 / 476.5 MB, free: 7.848 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07619/0.4234, allocations: 28.33 MB / 0.493 GB, free: 11.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.01/15.44, allocations: 15.06 kB / 0.493 GB, free: 11.7 MB / 414.1 MB " [Timeout remaining time 644] (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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.926395601127297]