Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.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.001337/0.001337, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001405/0.001405, allocations: 208.2 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.412/1.412, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 51.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2659, allocations: 53.36 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01244/0.2783, allocations: 8.758 MB / 439.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006454/0.2848, allocations: 3.353 MB / 443.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00102/0.2858, allocations: 31.75 kB / 443.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003307/0.2891, allocations: 1.136 MB / 444.3 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001708/0.2908, allocations: 0.6919 MB / 445 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.292, allocations: 0.4974 MB / 445.5 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008584/0.3006, allocations: 7.329 MB / 452.9 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003347/0.3039, allocations: 2.096 MB / 455 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004828/0.3087, allocations: 2.949 MB / 457.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00566/0.3144, allocations: 2.985 MB / 460.9 MB, free: 8.648 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001881/0.3163, allocations: 0.6758 MB / 461.6 MB, free: 7.973 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002219/0.3185, allocations: 0.7226 MB / 462.3 MB, free: 7.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005617/0.3241, allocations: 5.829 MB / 468.1 MB, free: 1.406 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01076/0.3349, allocations: 5.279 MB / 473.4 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03012/0.365, allocations: 25.17 MB / 498.6 MB, free: 2.844 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.116e-05/0.365, allocations: 3.938 kB / 498.6 MB, free: 2.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.365, allocations: 8 kB / 498.6 MB, free: 2.832 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0009036/0.3659, allocations: 0 / 498.6 MB, free: 2.832 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.06122/0.4271, allocations: 19.32 MB / 0.5058 GB, free: 15.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.351e-05/0.4272, allocations: 12.03 kB / 0.5058 GB, free: 15.35 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002202/0.4294, allocations: 499.5 kB / 0.5063 GB, free: 14.85 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007123/0.4365, allocations: 1.642 MB / 0.5079 GB, free: 13.2 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05214/0.4887, allocations: 18.11 MB / 0.5255 GB, free: 11.01 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006336/0.4893, allocations: 353.9 kB / 0.5259 GB, free: 10.65 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001459/0.4907, allocations: 328 kB / 0.5262 GB, free: 10.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01776/0.5085, allocations: 8.013 MB / 0.534 GB, free: 1.727 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000118/0.5086, allocations: 7.938 kB / 0.534 GB, free: 1.719 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001281/0.5099, allocations: 147.9 kB / 0.5342 GB, free: 1.574 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.192e-05/0.51, allocations: 83.94 kB / 0.5343 GB, free: 1.492 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4495/0.9595, allocations: 5.114 MB / 0.5392 GB, free: 80.39 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06505/1.025, allocations: 30.73 MB / 0.5693 GB, free: 58.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006464/1.031, allocations: 4.173 MB / 0.5733 GB, free: 54.78 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003518/1.034, allocations: 2.459 MB / 0.5757 GB, free: 52.33 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001238/1.035, allocations: 25.3 kB / 0.5758 GB, free: 52.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.815e-05/1.035, allocations: 71.53 kB / 0.5758 GB, free: 52.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=156): time 3.587e-06/1.035, allocations: 0 / 0.5758 GB, free: 52.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=156): time 0.01694/1.052, allocations: 7.514 MB / 0.5832 GB, free: 45.15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002075/1.052, allocations: 0.9824 MB / 0.5841 GB, free: 43.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.08295/1.135, allocations: 35.9 MB / 0.6192 GB, free: 8.137 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005487/1.135, allocations: 65.64 kB / 0.6192 GB, free: 8.066 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01547/1.151, allocations: 7.548 MB / 0.6266 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008081/1.152, allocations: 0.5683 MB / 0.6272 GB, free: 188 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001395/1.153, allocations: 427.3 kB / 0.6276 GB, free: 15.76 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/1.153, allocations: 305.1 kB / 0.6279 GB, free: 15.46 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00408/1.157, allocations: 1.975 MB / 0.6298 GB, free: 13.48 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005663/1.163, allocations: 3.757 MB / 0.6335 GB, free: 9.176 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00816/1.171, allocations: 4.208 MB / 0.6376 GB, free: 4.762 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-05/1.171, allocations: 4 kB / 0.6376 GB, free: 4.758 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.0173/1.188, allocations: 6.103 MB / 0.6435 GB, free: 14.63 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/1.188, allocations: 16 kB / 0.6435 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-05/1.188, allocations: 16 kB / 0.6436 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001281/1.19, allocations: 367.2 kB / 0.6439 GB, free: 14.24 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002754/1.192, allocations: 0.6902 MB / 0.6446 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00636/1.199, allocations: 4.433 MB / 0.6489 GB, free: 9.035 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008224/1.207, allocations: 0.6696 MB / 0.6496 GB, free: 8.426 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004623/1.208, allocations: 80 kB / 0.6496 GB, free: 8.348 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (222): * Single equations (assignments): 221 * 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 {(3,24)} Notification: Performance of prepare postOptimizeDAE: time 0.01426/1.222, allocations: 8.141 MB / 0.6576 GB, free: 208 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005815/1.228, allocations: 1.474 MB / 0.659 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01684/1.244, allocations: 6.026 MB / 0.6649 GB, free: 8.68 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-05/1.244, allocations: 20.03 kB / 0.6649 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/1.244, allocations: 6.062 kB / 0.6649 GB, free: 8.656 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.372e-05/1.244, allocations: 7.969 kB / 0.665 GB, free: 8.648 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05582/1.3, allocations: 16.72 MB / 0.6813 GB, free: 7.875 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/1.3, allocations: 3.938 kB / 0.6813 GB, free: 7.871 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002117/1.302, allocations: 0.5694 MB / 0.6818 GB, free: 7.301 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008779/1.303, allocations: 292.6 kB / 0.6821 GB, free: 7.012 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002118/1.304, allocations: 39.98 kB / 0.6822 GB, free: 6.973 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005168/1.309, allocations: 3.868 MB / 0.6859 GB, free: 3 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.309, allocations: 4 kB / 0.6859 GB, free: 2.996 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01713/1.326, allocations: 7.712 MB / 0.6935 GB, free: 11.25 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01617/1.342, allocations: 4.385 MB / 0.6978 GB, free: 6.867 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005331/1.347, allocations: 47.98 kB / 0.6978 GB, free: 6.82 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007559/1.355, allocations: 0.6552 MB / 0.6984 GB, free: 6.164 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001263/1.356, allocations: 440.6 kB / 0.6989 GB, free: 5.734 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003977/1.357, allocations: 51.88 kB / 0.6989 GB, free: 5.684 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.06183/1.418, allocations: 25.66 MB / 0.724 GB, free: 12.09 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.2e-07/1.418, allocations: 4 kB / 0.724 GB, free: 12.09 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009959/1.428, allocations: 1.846 MB / 0.7258 GB, free: 10.31 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].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 (136): * Single equations (assignments): 135 * 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 {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02103/1.449, allocations: 8.663 MB / 0.7342 GB, free: 1.773 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009232/1.459, allocations: 4.396 MB / 0.7385 GB, free: 13.36 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.71e-05/1.459, allocations: 5.156 kB / 0.7385 GB, free: 13.36 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004354/1.463, allocations: 2.215 MB / 0.7407 GB, free: 11.13 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02077/1.484, allocations: 2.112 MB / 0.7428 GB, free: 9.043 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9555/2.439, allocations: 226.3 MB / 0.9637 GB, free: 194.6 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01928/2.459, allocations: 9.815 MB / 0.9733 GB, free: 192.5 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01828/2.477, allocations: 7.689 MB / 0.9808 GB, free: 190 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01433/2.491, allocations: 6.098 MB / 0.9868 GB, free: 184.6 MB / 0.5607 GB Notification: Performance of SimCode: time 2.054e-06/2.491, allocations: 0 / 0.9868 GB, free: 184.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6663/3.157, allocations: 341.8 MB / 1.321 GB, free: 67.13 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 86.35/89.51, allocations: 1.422 kB / 1.321 GB, free: 67.13 MB / 0.5763 GB " [Timeout remaining time 570] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Stack/CCCV_Stack.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 655] Reference file matches [Calling sys.exit(0), Time elapsed: 102.5507638679992]