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.001386/0.001386, allocations: 120.1 kB / 18.49 MB, free: 4.59 MB / 14.72 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.001438/0.001438, allocations: 214.2 kB / 21.45 MB, free: 1.637 MB / 14.72 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 1.48/1.48, allocations: 230.5 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 59.91 kB / 373.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1167, allocations: 53.36 MB / 427 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006783/0.1235, allocations: 4.042 MB / 431.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2164/0.3399, allocations: 2.072 MB / 433.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003905/0.3403, allocations: 17.31 kB / 433.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001296/0.3416, allocations: 0.5977 MB / 433.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006901/0.3422, allocations: 395.3 kB / 434.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006629/0.3429, allocations: 284.6 kB / 434.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.344, allocations: 0.9787 MB / 435.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003915/0.3443, allocations: 261.9 kB / 435.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004333/0.3448, allocations: 395.6 kB / 436.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005765/0.3454, allocations: 0.511 MB / 436.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.3455, allocations: 78.88 kB / 436.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002702/0.3457, allocations: 140.5 kB / 436.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003822/0.3461, allocations: 477.6 kB / 437.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004821/0.3466, allocations: 0.6333 MB / 437.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002018/0.3486, allocations: 1.771 MB / 439.7 MB, free: 5.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3486, allocations: 0 / 439.7 MB, free: 5.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3486, allocations: 1.125 kB / 439.7 MB, free: 5.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.018e-05/0.3487, allocations: 0 / 439.7 MB, free: 5.961 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.002988/0.3517, allocations: 1.87 MB / 441.5 MB, free: 4.734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.3517, allocations: 13.09 kB / 441.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.566e-05/0.3517, allocations: 13.23 kB / 441.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.515e-05/0.3518, allocations: 94.89 kB / 441.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002455/0.3521, allocations: 171.9 kB / 441.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.3539, allocations: 1.198 MB / 443 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.354, allocations: 92.78 kB / 443.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.753e-05/0.3541, allocations: 57.17 kB / 443.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.3553, allocations: 0.658 MB / 443.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.3553, allocations: 1.25 kB / 443.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.279e-05/0.3553, allocations: 22.34 kB / 443.8 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.3553, allocations: 15.02 kB / 443.9 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008176/0.3562, allocations: 438.9 kB / 444.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004913/0.3611, allocations: 2.861 MB / 447.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.3621, allocations: 392 kB / 447.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006431/0.3627, allocations: 295.6 kB / 447.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.02e-05/0.3628, allocations: 2.594 kB / 447.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.3628, allocations: 43.33 kB / 447.9 MB, free: 1.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.906e-06/0.3628, allocations: 1.312 kB / 447.9 MB, free: 1.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002119/0.3649, allocations: 0.7799 MB / 448.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.365, allocations: 262.5 kB / 448.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003952/0.369, allocations: 2.246 MB / 451.1 MB, free: 136 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.647e-05/0.369, allocations: 32.67 kB / 451.2 MB, free: 100 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007722/0.3698, allocations: 0.6522 MB / 451.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.37, allocations: 115.1 kB / 451.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.3701, allocations: 76.73 kB / 452 MB, free: 15.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3703, allocations: 327.6 kB / 452.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004202/0.3707, allocations: 169.2 kB / 452.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004949/0.3712, allocations: 302.7 kB / 452.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007341/0.3719, allocations: 390.4 kB / 453.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.3719, allocations: 4 kB / 453.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001727/0.3736, allocations: 0.6479 MB / 453.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.3737, allocations: 7.031 kB / 453.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3737, allocations: 1.312 kB / 453.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003464/0.374, allocations: 73.58 kB / 453.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003808/0.3744, allocations: 86.95 kB / 454 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002135/0.3765, allocations: 1.772 MB / 455.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008422/0.3774, allocations: 57.89 kB / 455.8 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-05/0.3774, allocations: 15.17 kB / 455.8 MB, free: 12.7 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.001043/0.3785, allocations: 481.2 kB / 456.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003348/0.3788, allocations: 142.5 kB / 456.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003062/0.3791, allocations: 164.5 kB / 456.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.3791, allocations: 7.75 kB / 456.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.3791, allocations: 4.844 kB / 456.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.3791, allocations: 2.75 kB / 456.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003107/0.3822, allocations: 1.659 MB / 458.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.3822, allocations: 1.812 kB / 458.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003595/0.3826, allocations: 74.12 kB / 458.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002155/0.3828, allocations: 53.64 kB / 458.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.927e-05/0.3828, allocations: 12.47 kB / 458.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00194/0.3848, allocations: 1.73 MB / 460.1 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3848, allocations: 2.375 kB / 460.1 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002088/0.3869, allocations: 0.7975 MB / 460.9 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009457/0.3878, allocations: 342.4 kB / 461.3 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001817/0.388, allocations: 16.38 kB / 461.3 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000521/0.3885, allocations: 43.05 kB / 461.3 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.3886, allocations: 29.47 kB / 461.4 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.415e-05/0.3887, allocations: 15.27 kB / 461.4 MB, free: 8.695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003105/0.3918, allocations: 1.606 MB / 463 MB, free: 7.953 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3918, allocations: 1.656 kB / 463 MB, free: 7.953 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001223/0.393, allocations: 206.9 kB / 463.2 MB, free: 7.914 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.004002/0.397, allocations: 1.71 MB / 464.9 MB, free: 6.785 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.3983, allocations: 493 kB / 465.4 MB, free: 6.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/0.3983, allocations: 5.156 kB / 465.4 MB, free: 6.496 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005807/0.3989, allocations: 310.4 kB / 465.7 MB, free: 6.289 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/0.4003, allocations: 209.1 kB / 465.9 MB, free: 6.168 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02403/0.4244, allocations: 13.9 MB / 479.8 MB, free: 10.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.4254, allocations: 1.257 MB / 481.1 MB, free: 9.109 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007459/0.4262, allocations: 219.8 kB / 481.3 MB, free: 8.891 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000695/0.4269, allocations: 483.3 kB / 481.7 MB, free: 8.418 MB / 382.1 MB Notification: Performance of SimCode: time 1.333e-06/0.4269, allocations: 0 / 481.7 MB, free: 8.418 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06955/0.4964, allocations: 28.16 MB / 0.498 GB, free: 12.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.06/14.55, allocations: 15.94 kB / 0.498 GB, free: 12.42 MB / 414.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 18.96159317297861]