Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 213.3 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.486/1.486, allocations: 230.6 MB / 258.2 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 47.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2449, allocations: 53.37 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005657/0.2505, allocations: 3.701 MB / 436 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003314/0.2538, allocations: 1.94 MB / 438 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000259/0.2541, allocations: 15.94 kB / 438 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.2556, allocations: 0.5677 MB / 438.5 MB, free: 492 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006827/0.2563, allocations: 398.1 kB / 438.9 MB, free: 92 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006109/0.2569, allocations: 290.6 kB / 439.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001167/0.2581, allocations: 0.9897 MB / 440.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003946/0.2585, allocations: 229 kB / 440.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004514/0.2589, allocations: 406.6 kB / 440.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005873/0.2595, allocations: 0.5061 MB / 441.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.2597, allocations: 76 kB / 441.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002431/0.2599, allocations: 136 kB / 441.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005378/0.2604, allocations: 478.7 kB / 442 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004922/0.2609, allocations: 497 kB / 442.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001814/0.2627, allocations: 1.786 MB / 444.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2627, allocations: 0 / 444.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2627, allocations: 0 / 444.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.59e-05/0.2628, allocations: 0 / 444.3 MB, free: 10.73 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.003259/0.266, allocations: 1.8 MB / 446.1 MB, free: 8.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.2661, allocations: 8.031 kB / 446.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003053/0.2664, allocations: 171.8 kB / 446.3 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002209/0.2686, allocations: 1.13 MB / 447.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002168/0.2688, allocations: 174.1 kB / 447.6 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.318e-05/0.2689, allocations: 59.83 kB / 447.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.2703, allocations: 1.011 MB / 448.6 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.2703, allocations: 0 / 448.6 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.793e-05/0.2704, allocations: 23.94 kB / 448.7 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.2704, allocations: 12 kB / 448.7 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008577/0.2713, allocations: 443.7 kB / 449.1 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004954/0.2762, allocations: 2.521 MB / 451.6 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.2772, allocations: 397.8 kB / 452 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006618/0.2779, allocations: 288.7 kB / 452.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.2779, allocations: 0 / 452.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.676e-05/0.278, allocations: 38.56 kB / 452.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.278, allocations: 0 / 452.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001924/0.2799, allocations: 0.6969 MB / 453 MB, free: 1.637 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001695/0.2801, allocations: 269 kB / 453.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002972/0.283, allocations: 2.218 MB / 455.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.42e-05/0.2831, allocations: 33.7 kB / 455.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006734/0.2838, allocations: 0.6627 MB / 456.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.2839, allocations: 115 kB / 456.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.284, allocations: 74.06 kB / 456.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.2842, allocations: 325.9 kB / 456.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003635/0.2846, allocations: 156.6 kB / 456.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006401/0.2852, allocations: 0.5022 MB / 457.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007873/0.286, allocations: 396.6 kB / 457.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.286, allocations: 0 / 457.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001504/0.2875, allocations: 0.6528 MB / 458.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.2876, allocations: 8.156 kB / 458.4 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.2876, allocations: 4 kB / 458.4 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003227/0.2879, allocations: 64.75 kB / 458.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000397/0.2883, allocations: 87.83 kB / 458.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001899/0.2902, allocations: 1.641 MB / 460.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004578/0.2906, allocations: 51.73 kB / 460.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.203e-05/0.2907, allocations: 16 kB / 460.3 MB, free: 10.04 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.00068/0.2914, allocations: 489.6 kB / 460.7 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002139/0.2916, allocations: 135.1 kB / 460.9 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002225/0.2918, allocations: 165.3 kB / 461 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.2918, allocations: 4 kB / 461 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.2918, allocations: 3.938 kB / 461 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2918, allocations: 0 / 461 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002863/0.2947, allocations: 1.424 MB / 462.5 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2947, allocations: 4.062 kB / 462.5 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003534/0.295, allocations: 63.95 kB / 462.5 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001981/0.2952, allocations: 56.81 kB / 462.6 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.942e-05/0.2953, allocations: 8 kB / 462.6 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001714/0.297, allocations: 1.594 MB / 464.2 MB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.297, allocations: 7.922 kB / 464.2 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/0.2986, allocations: 0.7989 MB / 465 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006781/0.2993, allocations: 259 kB / 465.3 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.2994, allocations: 12 kB / 465.3 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004948/0.2999, allocations: 43.95 kB / 465.3 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.475e-05/0.3, allocations: 35.88 kB / 465.3 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.3001, allocations: 15.94 kB / 465.4 MB, free: 4.742 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002266/0.3023, allocations: 1.579 MB / 466.9 MB, free: 3.164 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3023, allocations: 0 / 466.9 MB, free: 3.164 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007665/0.3031, allocations: 215.6 kB / 467.1 MB, free: 2.953 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.001956/0.305, allocations: 0.4965 MB / 467.6 MB, free: 2.668 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.3062, allocations: 490.8 kB / 468.1 MB, free: 2.176 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3062, allocations: 0 / 468.1 MB, free: 2.176 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005934/0.3068, allocations: 306.5 kB / 468.4 MB, free: 1.863 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009783/0.3078, allocations: 190.2 kB / 468.6 MB, free: 1.684 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004203/0.312, allocations: 2.672 MB / 471.3 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008078/0.3128, allocations: 0.6642 MB / 471.9 MB, free: 14.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004654/0.3133, allocations: 207.5 kB / 472.1 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/0.3135, allocations: 67.42 kB / 472.2 MB, free: 14.01 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3135, allocations: 4 kB / 472.2 MB, free: 14 MB / 382.1 MB Notification: Performance of Templates: time 0.02824/0.3417, allocations: 15.35 MB / 487.6 MB, free: 14.8 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 4.970703790007974]