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.001303/0.001303, allocations: 112.2 kB / 19.04 MB, free: 3.254 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.001308/0.001308, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 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.474/1.474, allocations: 225.6 MB / 250.8 MB, free: 13.36 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: translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 51.92 kB / 368.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2622, allocations: 52.14 MB / 420.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005986/0.2682, allocations: 4.044 MB / 424.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003337/0.2715, allocations: 1.924 MB / 426.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003463/0.2719, allocations: 11.94 kB / 426.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001543/0.2734, allocations: 0.5875 MB / 427.4 MB, free: 8.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009682/0.2744, allocations: 354.2 kB / 427.8 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009553/0.2754, allocations: 294.3 kB / 428.1 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001564/0.2769, allocations: 0.978 MB / 429 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004511/0.2774, allocations: 224.6 kB / 429.3 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004655/0.2778, allocations: 382.8 kB / 429.6 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006349/0.2785, allocations: 0.5061 MB / 430.1 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.2786, allocations: 80 kB / 430.2 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002579/0.2788, allocations: 143.9 kB / 430.3 MB, free: 5.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000383/0.2792, allocations: 474.7 kB / 430.8 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006025/0.2798, allocations: 0.6329 MB / 431.4 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001995/0.2818, allocations: 1.751 MB / 433.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2818, allocations: 0 / 433.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2818, allocations: 4 kB / 433.2 MB, free: 2.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.827e-05/0.2818, allocations: 0 / 433.2 MB, free: 2.879 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.003342/0.2852, allocations: 1.868 MB / 435.1 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.2852, allocations: 8.031 kB / 435.1 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002665/0.2855, allocations: 167.9 kB / 435.2 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001798/0.2873, allocations: 1.188 MB / 436.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.2874, allocations: 94.84 kB / 436.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.815e-05/0.2875, allocations: 48 kB / 436.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.2889, allocations: 0.6596 MB / 437.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.2889, allocations: 7.938 kB / 437.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.126e-05/0.289, allocations: 20 kB / 437.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.289, allocations: 12 kB / 437.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009046/0.2899, allocations: 435.6 kB / 437.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005324/0.2952, allocations: 2.876 MB / 440.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000984/0.2962, allocations: 402.5 kB / 441 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006643/0.2968, allocations: 292.6 kB / 441.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.2969, allocations: 4 kB / 441.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.496e-05/0.2969, allocations: 39.06 kB / 441.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.79e-05/0.2969, allocations: 7.984 kB / 441.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002245/0.2992, allocations: 0.7717 MB / 442.1 MB, free: 9.695 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001558/0.2993, allocations: 265 kB / 442.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003116/0.3025, allocations: 2.226 MB / 444.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.045e-05/0.3025, allocations: 33.7 kB / 444.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000631/0.3032, allocations: 0.6473 MB / 445.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.3033, allocations: 111 kB / 445.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.3034, allocations: 82.02 kB / 445.4 MB, free: 6.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3036, allocations: 322 kB / 445.7 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003481/0.3039, allocations: 156.7 kB / 445.9 MB, free: 5.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004775/0.3044, allocations: 312.5 kB / 446.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007353/0.3051, allocations: 401.4 kB / 446.6 MB, free: 4.988 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3051, allocations: 0 / 446.6 MB, free: 4.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001446/0.3066, allocations: 0.6416 MB / 447.2 MB, free: 4.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.3066, allocations: 8.156 kB / 447.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.3066, allocations: 4 kB / 447.2 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003119/0.3069, allocations: 60.81 kB / 447.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003753/0.3073, allocations: 91.88 kB / 447.4 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001924/0.3092, allocations: 1.767 MB / 449.2 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005494/0.3098, allocations: 59.66 kB / 449.2 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.874e-05/0.3098, allocations: 15.94 kB / 449.2 MB, free: 2.195 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.0008497/0.3106, allocations: 493.6 kB / 449.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.3109, allocations: 139.1 kB / 449.8 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002224/0.3111, allocations: 161.5 kB / 450 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.3111, allocations: 7.938 kB / 450 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3111, allocations: 0 / 450 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.3111, allocations: 4.109 kB / 450 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002803/0.3139, allocations: 1.665 MB / 451.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.3139, allocations: 0 / 451.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003373/0.3142, allocations: 71.88 kB / 451.8 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001982/0.3144, allocations: 56.81 kB / 451.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/0.3145, allocations: 8 kB / 451.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001671/0.3161, allocations: 1.724 MB / 453.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3161, allocations: 4.031 kB / 453.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.3177, allocations: 0.7992 MB / 454.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005197/0.3182, allocations: 340 kB / 454.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.3183, allocations: 8 kB / 454.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004468/0.3187, allocations: 47.95 kB / 454.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.3188, allocations: 35.89 kB / 454.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.012e-05/0.3189, allocations: 12.12 kB / 454.8 MB, free: 12.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002225/0.3211, allocations: 1.6 MB / 456.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3211, allocations: 3.938 kB / 456.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000753/0.3219, allocations: 207.7 kB / 456.6 MB, free: 10.56 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.001701/0.3236, allocations: 471.7 kB / 457 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.3247, allocations: 494.3 kB / 457.5 MB, free: 9.781 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.3247, allocations: 4 kB / 457.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005471/0.3253, allocations: 298.9 kB / 457.8 MB, free: 9.473 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009869/0.3263, allocations: 204.5 kB / 458 MB, free: 9.277 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004251/0.3305, allocations: 2.683 MB / 460.7 MB, free: 6.551 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009855/0.3315, allocations: 1.253 MB / 462 MB, free: 5.273 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005047/0.332, allocations: 215.8 kB / 462.2 MB, free: 5.059 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001951/0.3322, allocations: 63.44 kB / 462.2 MB, free: 4.996 MB / 366.1 MB Notification: Performance of SimCode: time 1.372e-06/0.3322, allocations: 0 / 462.2 MB, free: 4.996 MB / 366.1 MB Notification: Performance of Templates: time 0.02808/0.3603, allocations: 14.35 MB / 476.6 MB, free: 6.762 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/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: 5.082851218990982]