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.001021/0.001021, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 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.0009567/0.0009567, allocations: 173.1 kB / 24.91 MB, free: 8.258 MB / 18.57 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 0.9126/0.9126, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+..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.[0-9,]+..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 1.683e-06/1.683e-06, allocations: 0 / 273.4 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.014e-05/2.182e-05, allocations: 2.312 kB / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005727/0.005749, allocations: 3.966 MB / 277.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003757/0.009506, allocations: 2.06 MB / 279.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003323/0.009838, allocations: 15.88 kB / 279.5 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001178/0.01102, allocations: 0.5795 MB / 280 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006973/0.01171, allocations: 405.8 kB / 280.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007907/0.0125, allocations: 291.3 kB / 280.7 MB, free: 9.992 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009627/0.01347, allocations: 1.009 MB / 281.7 MB, free: 8.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003045/0.01377, allocations: 223 kB / 281.9 MB, free: 8.758 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005673/0.01434, allocations: 0.5418 MB / 282.5 MB, free: 8.215 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004062/0.01475, allocations: 419 kB / 282.9 MB, free: 7.805 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.808e-05/0.01483, allocations: 80 kB / 283 MB, free: 7.727 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001712/0.015, allocations: 139.9 kB / 283.1 MB, free: 7.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002688/0.01527, allocations: 486.6 kB / 283.6 MB, free: 7.113 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002657/0.01554, allocations: 386.9 kB / 284 MB, free: 6.734 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009421/0.01648, allocations: 1.086 MB / 285.1 MB, free: 5.645 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.01648, allocations: 4 kB / 285.1 MB, free: 5.641 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.01649, allocations: 0 / 285.1 MB, free: 5.641 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.0165, allocations: 0 / 285.1 MB, free: 5.641 MB / 266.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.001716/0.01822, allocations: 1.658 MB / 286.7 MB, free: 3.945 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.01825, allocations: 8.031 kB / 286.7 MB, free: 3.938 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.01841, allocations: 136.8 kB / 286.9 MB, free: 3.805 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007146/0.01912, allocations: 0.6724 MB / 287.5 MB, free: 3.098 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.01923, allocations: 174.1 kB / 287.7 MB, free: 2.898 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.934e-05/0.01929, allocations: 52.38 kB / 287.7 MB, free: 2.848 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000547/0.01984, allocations: 0.8115 MB / 288.6 MB, free: 1.902 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.01985, allocations: 0 / 288.6 MB, free: 1.902 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.445e-05/0.01988, allocations: 24 kB / 288.6 MB, free: 1.879 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.01989, allocations: 12 kB / 288.6 MB, free: 1.867 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.02006, allocations: 130.8 kB / 288.7 MB, free: 1.738 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.02195, allocations: 1.617 MB / 290.3 MB, free: 64 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1052/0.1272, allocations: 206.2 kB / 290.5 MB, free: 24.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.1275, allocations: 165.1 kB / 290.7 MB, free: 24.42 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.1275, allocations: 8.094 kB / 290.7 MB, free: 24.42 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.1275, allocations: 39 kB / 290.7 MB, free: 24.38 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.525e-06/0.1275, allocations: 2.062 kB / 290.8 MB, free: 24.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.001066/0.1286, allocations: 329.5 kB / 291.1 MB, free: 24.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.1286, allocations: 264.1 kB / 291.3 MB, free: 24.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001725/0.1304, allocations: 1.339 MB / 292.7 MB, free: 23.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.1304, allocations: 36.42 kB / 292.7 MB, free: 23.81 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002591/0.1307, allocations: 393.5 kB / 293.1 MB, free: 23.72 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.034e-05/0.1307, allocations: 116.1 kB / 293.2 MB, free: 23.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.1308, allocations: 72.45 kB / 293.3 MB, free: 23.69 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.958e-05/0.1309, allocations: 322.8 kB / 293.6 MB, free: 23.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.301e-05/0.131, allocations: 34.48 kB / 293.6 MB, free: 23.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.1311, allocations: 380.3 kB / 294 MB, free: 22.99 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002371/0.1314, allocations: 194.3 kB / 294.2 MB, free: 22.89 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1314, allocations: 3.625 kB / 294.2 MB, free: 22.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005782/0.132, allocations: 310.2 kB / 294.5 MB, free: 22.85 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.132, allocations: 5.312 kB / 294.5 MB, free: 22.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.132, allocations: 3.031 kB / 294.5 MB, free: 22.85 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001771/0.1322, allocations: 41.88 kB / 294.5 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002698/0.1324, allocations: 90.05 kB / 294.6 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008503/0.1333, allocations: 1.429 MB / 296.1 MB, free: 21.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002572/0.1335, allocations: 42.47 kB / 296.1 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.1336, allocations: 12 kB / 296.1 MB, free: 21.55 MB / 266.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 (battery.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0001942/0.1338, allocations: 143.2 kB / 296.2 MB, free: 21.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.1339, allocations: 82.42 kB / 296.3 MB, free: 21.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001471/0.1341, allocations: 123 kB / 296.5 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1341, allocations: 6.375 kB / 296.5 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.1341, allocations: 0.6094 kB / 296.5 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.1341, allocations: 1.406 kB / 296.5 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.1352, allocations: 0.8029 MB / 297.3 MB, free: 21.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.217e-06/0.1352, allocations: 1.547 kB / 297.3 MB, free: 21.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.1353, allocations: 65.17 kB / 297.3 MB, free: 21.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.493e-05/0.1354, allocations: 35.62 kB / 297.4 MB, free: 21.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.1354, allocations: 14.98 kB / 297.4 MB, free: 21.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005011/0.1359, allocations: 1.396 MB / 298.8 MB, free: 19.9 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1359, allocations: 1.125 kB / 298.8 MB, free: 19.9 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000406/0.1364, allocations: 419.5 kB / 299.2 MB, free: 19.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002465/0.1366, allocations: 173 kB / 299.4 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.1367, allocations: 8.578 kB / 299.4 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002837/0.137, allocations: 35.41 kB / 299.4 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.662e-05/0.1371, allocations: 31.12 kB / 299.4 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.1371, allocations: 12.33 kB / 299.4 MB, free: 19.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0009483/0.138, allocations: 0.724 MB / 300.2 MB, free: 19.6 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.138, allocations: 0 / 300.2 MB, free: 19.6 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006601/0.1387, allocations: 213.4 kB / 300.4 MB, free: 19.59 MB / 266.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.001243/0.1399, allocations: 0.5894 MB / 301 MB, free: 19.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003514/0.1403, allocations: 295.1 kB / 301.2 MB, free: 19.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.598e-05/0.1403, allocations: 18.06 kB / 301.3 MB, free: 19.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.1405, allocations: 215 kB / 301.5 MB, free: 19.18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004682/0.1409, allocations: 201.4 kB / 301.7 MB, free: 19.15 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.1431, allocations: 2.047 MB / 303.7 MB, free: 18.2 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.1434, allocations: 296.3 kB / 304 MB, free: 18.13 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002415/0.1436, allocations: 127 kB / 304.1 MB, free: 18.1 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003554/0.144, allocations: 255.1 kB / 304.4 MB, free: 18.04 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.144, allocations: 0 / 304.4 MB, free: 18.04 MB / 266.7 MB Notification: Performance of Templates: time 0.01554/0.1595, allocations: 14.82 MB / 319.2 MB, free: 6.656 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.907311841379851]