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.001908/0.001908, allocations: 120.4 kB / 18.41 MB, free: 4.684 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.002276/0.002276, allocations: 190.7 kB / 21.35 MB, free: 1.75 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.505/1.505, allocations: 222.9 MB / 247.1 MB, free: 4.223 MB / 190.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.001587/0.001587, allocations: 47.91 kB / 358.6 MB, free: 8.402 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09764/0.09925, allocations: 49.44 MB / 408.1 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.0056/0.1049, allocations: 3.981 MB / 412.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003165/0.1081, allocations: 1.909 MB / 414 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003089/0.1084, allocations: 15.94 kB / 414 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.1097, allocations: 0.5836 MB / 414.6 MB, free: 412 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006948/0.1105, allocations: 346.3 kB / 414.9 MB, free: 64 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006921/0.1112, allocations: 295.3 kB / 415.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001204/0.1124, allocations: 0.978 MB / 416.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005264/0.1129, allocations: 352.5 kB / 416.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004554/0.1134, allocations: 378.8 kB / 416.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006112/0.114, allocations: 0.4905 MB / 417.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.1142, allocations: 80 kB / 417.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002859/0.1145, allocations: 139.9 kB / 417.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004011/0.1149, allocations: 466.7 kB / 418.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006042/0.1155, allocations: 0.6251 MB / 418.7 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001847/0.1173, allocations: 1.766 MB / 420.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1174, allocations: 0 / 420.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1174, allocations: 0 / 420.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.094e-05/0.1174, allocations: 0 / 420.4 MB, free: 10.5 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.003087/0.1205, allocations: 1.868 MB / 422.3 MB, free: 8.578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.1205, allocations: 8.031 kB / 422.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002645/0.1208, allocations: 167.9 kB / 422.5 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001826/0.1226, allocations: 1.19 MB / 423.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.1228, allocations: 92.97 kB / 423.8 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.172e-05/0.1229, allocations: 51.94 kB / 423.8 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.1241, allocations: 0.6596 MB / 424.5 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.1241, allocations: 3.938 kB / 424.5 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.773e-05/0.1242, allocations: 20 kB / 424.5 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.1242, allocations: 12 kB / 424.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008475/0.1251, allocations: 435.7 kB / 424.9 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004561/0.1296, allocations: 2.883 MB / 427.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.1307, allocations: 414.6 kB / 428.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006916/0.1314, allocations: 329.1 kB / 428.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.262e-05/0.1315, allocations: 4 kB / 428.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.1315, allocations: 46.56 kB / 428.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.993e-06/0.1315, allocations: 0 / 428.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002027/0.1336, allocations: 0.7639 MB / 429.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.1337, allocations: 261 kB / 429.6 MB, free: 0.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2007/0.3345, allocations: 2.237 MB / 431.9 MB, free: 21.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.803e-05/0.3346, allocations: 30.48 kB / 431.9 MB, free: 21.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004447/0.3351, allocations: 0.6408 MB / 432.5 MB, free: 21.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.656e-05/0.3351, allocations: 118.9 kB / 432.6 MB, free: 21.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.3353, allocations: 80.73 kB / 432.7 MB, free: 21.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.618e-05/0.3353, allocations: 325.8 kB / 433 MB, free: 21.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003487/0.3357, allocations: 164.9 kB / 433.2 MB, free: 21.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003721/0.3361, allocations: 307 kB / 433.5 MB, free: 21.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000611/0.3367, allocations: 399.5 kB / 433.9 MB, free: 21.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.3367, allocations: 0 / 433.9 MB, free: 21.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001368/0.3381, allocations: 0.6407 MB / 434.5 MB, free: 20.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3381, allocations: 10.19 kB / 434.5 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.3381, allocations: 2.578 kB / 434.5 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000301/0.3384, allocations: 61.55 kB / 434.6 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003709/0.3388, allocations: 97.22 kB / 434.7 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.3402, allocations: 1.764 MB / 436.5 MB, free: 19.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005078/0.3408, allocations: 58.81 kB / 436.5 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.3408, allocations: 15.8 kB / 436.5 MB, free: 19.45 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.0007295/0.3415, allocations: 495.8 kB / 437 MB, free: 19.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.3417, allocations: 138.3 kB / 437.2 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002022/0.3419, allocations: 163.9 kB / 437.3 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.342, allocations: 7.562 kB / 437.3 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.342, allocations: 0 / 437.3 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.342, allocations: 3.219 kB / 437.3 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002552/0.3445, allocations: 1.657 MB / 439 MB, free: 18.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.3446, allocations: 3.469 kB / 439 MB, free: 18.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003244/0.3449, allocations: 69.81 kB / 439 MB, free: 18.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001942/0.3451, allocations: 63.64 kB / 439.1 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.3451, allocations: 8.875 kB / 439.1 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.3463, allocations: 1.721 MB / 440.8 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3464, allocations: 1.125 kB / 440.8 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/0.3479, allocations: 0.8044 MB / 441.6 MB, free: 17.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004484/0.3483, allocations: 336.6 kB / 442 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.3485, allocations: 10.91 kB / 442 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000447/0.3489, allocations: 47.28 kB / 442 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.349, allocations: 35.16 kB / 442.1 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.261e-05/0.3491, allocations: 6.984 kB / 442.1 MB, free: 16.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002081/0.3511, allocations: 1.599 MB / 443.7 MB, free: 16.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3512, allocations: 0 / 443.7 MB, free: 16.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008263/0.352, allocations: 211.1 kB / 443.9 MB, free: 16.83 MB / 350.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.001753/0.3537, allocations: 467.1 kB / 444.3 MB, free: 16.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.3549, allocations: 0.5057 MB / 444.8 MB, free: 16.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.3549, allocations: 5.25 kB / 444.8 MB, free: 16.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005139/0.3554, allocations: 318.3 kB / 445.2 MB, free: 16.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009606/0.3564, allocations: 204.5 kB / 445.4 MB, free: 16.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003943/0.3604, allocations: 2.731 MB / 448.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007584/0.3612, allocations: 1.249 MB / 449.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000295/0.3615, allocations: 75.25 kB / 449.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3615, allocations: 0 / 449.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of Templates: time 0.02882/0.3903, allocations: 20.98 MB / 470.4 MB, free: 0.9805 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 9.0009568950627]