Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.00191/0.00191, allocations: 118.2 kB / 18.49 MB, free: 4.566 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.002194/0.002194, allocations: 218.3 kB / 21.46 MB, free: 1.613 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.519/1.519, allocations: 230.4 MB / 254.7 MB, free: 15.04 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.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 59.91 kB / 373.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1077, allocations: 53.38 MB / 427.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.2093/0.317, allocations: 5.562 MB / 432.6 MB, free: 7.816 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002731/0.3198, allocations: 1.876 MB / 434.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002942/0.3201, allocations: 20.53 kB / 434.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008489/0.3209, allocations: 0.522 MB / 435 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006139/0.3215, allocations: 392.4 kB / 435.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006728/0.3222, allocations: 376.6 kB / 435.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008044/0.323, allocations: 0.896 MB / 436.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004212/0.3234, allocations: 238.3 kB / 436.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004056/0.3238, allocations: 373.3 kB / 437.3 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004704/0.3243, allocations: 466.4 kB / 437.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.3244, allocations: 79.56 kB / 437.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000208/0.3246, allocations: 121.4 kB / 437.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004195/0.325, allocations: 0.589 MB / 438.5 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005052/0.3255, allocations: 0.7373 MB / 439.3 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002609/0.3281, allocations: 2.137 MB / 441.4 MB, free: 5.492 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3282, allocations: 3.344 kB / 441.4 MB, free: 5.492 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3282, allocations: 3.938 kB / 441.4 MB, free: 5.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.894e-05/0.3282, allocations: 1.156 kB / 441.4 MB, free: 5.488 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003308/0.3315, allocations: 2.143 MB / 443.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.3316, allocations: 9.281 kB / 443.6 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.368e-05/0.3316, allocations: 14.03 kB / 443.6 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.146e-05/0.3317, allocations: 90.09 kB / 443.7 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003223/0.332, allocations: 199.7 kB / 443.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002306/0.3343, allocations: 1.517 MB / 445.4 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.846e-05/0.3344, allocations: 71.61 kB / 445.4 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.817e-05/0.3345, allocations: 48.53 kB / 445.5 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.3355, allocations: 0.5786 MB / 446.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.3355, allocations: 5.156 kB / 446.1 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.73e-05/0.3356, allocations: 22.28 kB / 446.1 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.3356, allocations: 10.88 kB / 446.1 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006438/0.3362, allocations: 346.7 kB / 446.4 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004621/0.3408, allocations: 3.246 MB / 449.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.3419, allocations: 357.8 kB / 450 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004579/0.3424, allocations: 174.9 kB / 450.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.872e-05/0.3424, allocations: 3 kB / 450.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.3424, allocations: 36.81 kB / 450.2 MB, free: 476 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.994e-06/0.3424, allocations: 1.281 kB / 450.2 MB, free: 476 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002074/0.3445, allocations: 0.7046 MB / 451 MB, free: 128 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.3446, allocations: 210.1 kB / 451.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004427/0.349, allocations: 2.901 MB / 454.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.113e-05/0.3491, allocations: 31.98 kB / 454.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007924/0.3499, allocations: 0.7868 MB / 454.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.35, allocations: 84.33 kB / 455 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001394/0.3501, allocations: 68.69 kB / 455 MB, free: 14.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.3503, allocations: 317.9 kB / 455.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003868/0.3507, allocations: 120.6 kB / 455.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005023/0.3512, allocations: 291 kB / 455.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007537/0.3519, allocations: 362.5 kB / 456.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/0.3519, allocations: 1.5 kB / 456.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001564/0.3535, allocations: 0.5731 MB / 456.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.3535, allocations: 5.844 kB / 456.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.3535, allocations: 4.344 kB / 456.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003069/0.3538, allocations: 55.77 kB / 456.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002966/0.3541, allocations: 72.39 kB / 456.8 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001944/0.3561, allocations: 1.731 MB / 458.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007684/0.3569, allocations: 57.36 kB / 458.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.694e-05/0.3569, allocations: 16.72 kB / 458.6 MB, free: 11.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.001089/0.358, allocations: 0.583 MB / 459.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004204/0.3584, allocations: 178.7 kB / 459.4 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001468/0.3599, allocations: 0.5091 MB / 459.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.3599, allocations: 3.328 kB / 459.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.3599, allocations: 4 kB / 459.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3599, allocations: 0 / 459.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003934/0.3638, allocations: 1.697 MB / 461.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.3638, allocations: 0.875 kB / 461.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002499/0.3641, allocations: 46.09 kB / 461.6 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002046/0.3643, allocations: 47.67 kB / 461.7 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/0.3643, allocations: 9.203 kB / 461.7 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001842/0.3661, allocations: 1.672 MB / 463.3 MB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3661, allocations: 3.938 kB / 463.4 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.3681, allocations: 0.7131 MB / 464.1 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008335/0.369, allocations: 389.3 kB / 464.4 MB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001604/0.3691, allocations: 8.109 kB / 464.5 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004824/0.3696, allocations: 46.98 kB / 464.5 MB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.3697, allocations: 32.45 kB / 464.5 MB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.3697, allocations: 9.25 kB / 464.5 MB, free: 6.918 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00352/0.3733, allocations: 2.075 MB / 466.6 MB, free: 5.938 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3733, allocations: 1 kB / 466.6 MB, free: 5.938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009608/0.3742, allocations: 195.4 kB / 466.8 MB, free: 5.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003306/0.3775, allocations: 1.526 MB / 468.3 MB, free: 4.863 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001166/0.3787, allocations: 434.5 kB / 468.8 MB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.3787, allocations: 0 / 468.8 MB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005572/0.3793, allocations: 269.3 kB / 469 MB, free: 4.422 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001482/0.3807, allocations: 226.4 kB / 469.2 MB, free: 4.297 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03068/0.4114, allocations: 17.54 MB / 486.8 MB, free: 3.793 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/0.4127, allocations: 1.359 MB / 488.1 MB, free: 2.406 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006629/0.4133, allocations: 243.5 kB / 488.4 MB, free: 2.168 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009551/0.4143, allocations: 0.5852 MB / 489 MB, free: 1.582 MB / 382.1 MB Notification: Performance of SimCode: time 2.214e-06/0.4143, allocations: 0 / 489 MB, free: 1.582 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1139/0.5282, allocations: 32.91 MB / 0.5096 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.83/15.36, allocations: 4.062 kB / 0.5096 GB, free: 0.8359 MB / 414.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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: 20.24861901899567]