Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008056/0.0008056, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003332/0.003332, allocations: 159.4 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8583/0.8583, allocations: 177 MB / 204.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.389e-05/3.555e-05, allocations: 3.125 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.003938/0.003974, allocations: 3.706 MB / 329.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002522/0.006496, allocations: 1.955 MB / 331.4 MB, free: 9.715 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002888/0.006785, allocations: 19.88 kB / 331.4 MB, free: 9.695 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000985/0.00777, allocations: 0.5678 MB / 332 MB, free: 9.125 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005465/0.008316, allocations: 401.9 kB / 332.4 MB, free: 8.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004994/0.008815, allocations: 290.3 kB / 332.7 MB, free: 8.449 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008635/0.009679, allocations: 1.013 MB / 333.7 MB, free: 7.434 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003178/0.009997, allocations: 217 kB / 333.9 MB, free: 7.219 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005232/0.01052, allocations: 0.5457 MB / 334.5 MB, free: 6.672 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003723/0.01089, allocations: 443 kB / 334.9 MB, free: 6.238 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.905e-05/0.01096, allocations: 84 kB / 335 MB, free: 6.156 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.01114, allocations: 139.9 kB / 335.1 MB, free: 6.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002278/0.01137, allocations: 482.6 kB / 335.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002363/0.01161, allocations: 386.9 kB / 336 MB, free: 5.168 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.01271, allocations: 1.733 MB / 337.7 MB, free: 3.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.01271, allocations: 0 / 337.7 MB, free: 3.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.01271, allocations: 0 / 337.7 MB, free: 3.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.01272, allocations: 0 / 337.7 MB, free: 3.43 MB / 298.7 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.001863/0.01459, allocations: 1.788 MB / 339.5 MB, free: 1.598 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.01462, allocations: 11.98 kB / 339.5 MB, free: 1.586 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.0148, allocations: 167.9 kB / 339.7 MB, free: 1.422 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.01589, allocations: 1.129 MB / 340.8 MB, free: 260 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/0.01603, allocations: 178.1 kB / 341 MB, free: 52 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.62e-05/0.01608, allocations: 48.38 kB / 341 MB, free: 4 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008377/0.01692, allocations: 1.019 MB / 342 MB, free: 14.85 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.01693, allocations: 192 / 342 MB, free: 14.85 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.01697, allocations: 24.12 kB / 342 MB, free: 14.83 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.01698, allocations: 15.94 kB / 342.1 MB, free: 14.81 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004864/0.01747, allocations: 435.7 kB / 342.5 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002483/0.01995, allocations: 2.518 MB / 345 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005653/0.02051, allocations: 402.4 kB / 345.4 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003823/0.0209, allocations: 289.5 kB / 345.7 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.02092, allocations: 4 kB / 345.7 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.02095, allocations: 38.56 kB / 345.7 MB, free: 11.05 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 2.915e-06/0.02095, allocations: 0 / 345.7 MB, free: 11.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=30): time 0.001079/0.02203, allocations: 0.6976 MB / 346.4 MB, free: 10.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.527e-05/0.02212, allocations: 265 kB / 346.7 MB, free: 10.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001912/0.02404, allocations: 2.21 MB / 348.9 MB, free: 7.797 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.02408, allocations: 33.7 kB / 348.9 MB, free: 7.758 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004585/0.02453, allocations: 0.6588 MB / 349.6 MB, free: 7.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.469e-05/0.02462, allocations: 119 kB / 349.7 MB, free: 6.973 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.02472, allocations: 78 kB / 349.8 MB, free: 6.887 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.56e-05/0.02481, allocations: 322 kB / 350.1 MB, free: 6.566 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.02502, allocations: 160.6 kB / 350.2 MB, free: 6.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/0.02534, allocations: 0.5019 MB / 350.7 MB, free: 5.805 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004182/0.02576, allocations: 392.1 kB / 351.1 MB, free: 5.391 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.02577, allocations: 4 kB / 351.1 MB, free: 5.387 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007885/0.02656, allocations: 0.6528 MB / 351.8 MB, free: 4.723 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.02657, allocations: 4 kB / 351.8 MB, free: 4.719 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.02658, allocations: 4 kB / 351.8 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002428/0.02683, allocations: 64.94 kB / 351.9 MB, free: 4.648 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002103/0.02704, allocations: 91.81 kB / 351.9 MB, free: 4.559 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.02821, allocations: 1.637 MB / 353.6 MB, free: 2.824 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002724/0.02848, allocations: 51.75 kB / 353.6 MB, free: 2.773 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.0285, allocations: 16 kB / 353.6 MB, free: 2.758 MB / 314.7 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.0005044/0.02901, allocations: 489.4 kB / 354.1 MB, free: 2.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.02912, allocations: 135.2 kB / 354.3 MB, free: 2.137 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.02924, allocations: 165.3 kB / 354.4 MB, free: 1.973 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.02925, allocations: 4 kB / 354.4 MB, free: 1.969 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.02925, allocations: 0 / 354.4 MB, free: 1.969 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.02926, allocations: 3.984 kB / 354.4 MB, free: 1.965 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001558/0.03081, allocations: 1.428 MB / 355.9 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.03082, allocations: 3.938 kB / 355.9 MB, free: 496 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001774/0.031, allocations: 71.95 kB / 355.9 MB, free: 424 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001227/0.03112, allocations: 52.83 kB / 356 MB, free: 368 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.03114, allocations: 11.98 kB / 356 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000926/0.03206, allocations: 1.582 MB / 357.6 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.03206, allocations: 3.938 kB / 357.6 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000832/0.0329, allocations: 0.8066 MB / 358.4 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003048/0.0332, allocations: 255 kB / 358.6 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.229e-05/0.03326, allocations: 8 kB / 358.6 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.03349, allocations: 51.95 kB / 358.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/0.03356, allocations: 27.95 kB / 358.7 MB, free: 13.49 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.03357, allocations: 15.98 kB / 358.7 MB, free: 13.47 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001273/0.03484, allocations: 1.583 MB / 360.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03484, allocations: 0 / 360.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004915/0.03534, allocations: 215.5 kB / 360.5 MB, free: 11.68 MB / 330.7 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.0008168/0.03615, allocations: 492 kB / 361 MB, free: 11.37 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000668/0.03682, allocations: 486.3 kB / 361.5 MB, free: 10.88 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.03683, allocations: 4 kB / 361.5 MB, free: 10.88 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002922/0.03712, allocations: 303.3 kB / 361.8 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005462/0.03766, allocations: 192 kB / 362 MB, free: 10.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.04037, allocations: 2.644 MB / 364.6 MB, free: 7.688 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00044/0.04081, allocations: 0.6564 MB / 365.3 MB, free: 7.004 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/0.041, allocations: 72.48 kB / 365.3 MB, free: 6.934 MB / 330.7 MB Notification: Performance of SimCode: time 1.513e-06/0.041, allocations: 4 kB / 365.3 MB, free: 6.93 MB / 330.7 MB Notification: Performance of Templates: time 0.02064/0.06164, allocations: 21.26 MB / 386.6 MB, free: 1.684 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.207716946490109]