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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006772/0.0006772, allocations: 92.59 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007979/0.0007979, allocations: 204.3 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.226/1.226, allocations: 227.7 MB / 246.8 MB, free: 11.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002032/0.0002032, allocations: 8 kB / 307.8 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07763/0.07785, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004047/0.08194, allocations: 3.647 MB / 363 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002785/0.08475, allocations: 2.007 MB / 365 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003323/0.0851, allocations: 11.94 kB / 365 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.08621, allocations: 0.5684 MB / 365.6 MB, free: 6.922 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006156/0.08684, allocations: 346.6 kB / 365.9 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005495/0.0874, allocations: 263.5 kB / 366.2 MB, free: 6.324 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009241/0.08834, allocations: 0.9273 MB / 367.1 MB, free: 5.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003994/0.08875, allocations: 308 kB / 367.4 MB, free: 5.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003476/0.08911, allocations: 310.7 kB / 367.7 MB, free: 4.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004663/0.08958, allocations: 442.3 kB / 368.1 MB, free: 4.348 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.474e-05/0.08968, allocations: 36 kB / 368.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001957/0.08988, allocations: 87.98 kB / 368.3 MB, free: 4.227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002814/0.09017, allocations: 422.7 kB / 368.7 MB, free: 3.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004648/0.09064, allocations: 0.5994 MB / 369.3 MB, free: 3.203 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.09183, allocations: 1.658 MB / 370.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.09184, allocations: 0 / 370.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09185, allocations: 3.938 kB / 370.9 MB, free: 1.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.934e-05/0.09188, allocations: 0 / 370.9 MB, free: 1.535 MB / 302.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.1361/0.228, allocations: 1.599 MB / 372.5 MB, free: 18.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.228, allocations: 9.422 kB / 372.5 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002052/0.2282, allocations: 94.42 kB / 372.6 MB, free: 18.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002823/0.2285, allocations: 158.8 kB / 372.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001578/0.2301, allocations: 1.165 MB / 374 MB, free: 17.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002974/0.2304, allocations: 141.4 kB / 374.1 MB, free: 17.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/0.2305, allocations: 53.16 kB / 374.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/0.2316, allocations: 0.6853 MB / 374.8 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.2316, allocations: 0.5312 kB / 374.8 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.758e-05/0.2317, allocations: 22.78 kB / 374.9 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.2317, allocations: 13.03 kB / 374.9 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008616/0.2325, allocations: 452.8 kB / 375.3 MB, free: 17.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003547/0.2361, allocations: 2.925 MB / 378.2 MB, free: 16.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009772/0.2371, allocations: 483.3 kB / 378.7 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006371/0.2377, allocations: 344.4 kB / 379 MB, free: 16.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.2378, allocations: 2.656 kB / 379 MB, free: 16.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.781e-05/0.2378, allocations: 38.88 kB / 379.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.553e-06/0.2378, allocations: 0 / 379.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001806/0.2396, allocations: 0.8381 MB / 379.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.2397, allocations: 266 kB / 380.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002387/0.2421, allocations: 2.243 MB / 382.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.2421, allocations: 36.02 kB / 382.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004016/0.2425, allocations: 0.6379 MB / 383.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.689e-05/0.2426, allocations: 111.6 kB / 383.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.011e-05/0.2426, allocations: 37.91 kB / 383.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.422e-05/0.2427, allocations: 323 kB / 383.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003725/0.2431, allocations: 176.6 kB / 383.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004334/0.2435, allocations: 315.7 kB / 384 MB, free: 13.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007176/0.2442, allocations: 428.8 kB / 384.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.2442, allocations: 1.594 kB / 384.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001328/0.2456, allocations: 0.6848 MB / 385.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.2456, allocations: 6.688 kB / 385.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.2456, allocations: 6.656 kB / 385.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002754/0.2459, allocations: 70.14 kB / 385.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003795/0.2463, allocations: 99.33 kB / 385.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001301/0.2476, allocations: 1.623 MB / 387 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004322/0.248, allocations: 69.39 kB / 387 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.727e-05/0.2481, allocations: 12.45 kB / 387 MB, free: 11.34 MB / 302.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.000516/0.2486, allocations: 0.491 MB / 387.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.2488, allocations: 139 kB / 387.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002026/0.249, allocations: 161.6 kB / 387.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.249, allocations: 6.281 kB / 387.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.249, allocations: 4.562 kB / 387.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.249, allocations: 1.5 kB / 387.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.2516, allocations: 1.714 MB / 389.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2517, allocations: 4.281 kB / 389.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003298/0.252, allocations: 75.61 kB / 389.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.2522, allocations: 60.31 kB / 389.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.2522, allocations: 7.125 kB / 389.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/0.2533, allocations: 1.58 MB / 391.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2533, allocations: 0.7812 kB / 391.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.2548, allocations: 0.8647 MB / 392.1 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003877/0.2552, allocations: 334.3 kB / 392.5 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.2553, allocations: 12.53 kB / 392.5 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004602/0.2558, allocations: 63.28 kB / 392.5 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.369e-05/0.2559, allocations: 29.72 kB / 392.6 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.2559, allocations: 17.11 kB / 392.6 MB, free: 7.898 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001639/0.2575, allocations: 1.615 MB / 394.2 MB, free: 7.148 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2575, allocations: 0 / 394.2 MB, free: 7.148 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006397/0.2582, allocations: 205.4 kB / 394.4 MB, free: 7.113 MB / 302.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.002391/0.2606, allocations: 1.761 MB / 396.2 MB, free: 5.949 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009108/0.2615, allocations: 0.5315 MB / 396.7 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.2615, allocations: 7.188 kB / 396.7 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004615/0.262, allocations: 339.6 kB / 397 MB, free: 5.426 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008819/0.2629, allocations: 198.8 kB / 397.2 MB, free: 5.316 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02017/0.283, allocations: 15.89 MB / 413.1 MB, free: 5.301 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008178/0.2839, allocations: 1.257 MB / 414.4 MB, free: 4.02 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004749/0.2844, allocations: 227.8 kB / 414.6 MB, free: 3.793 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005337/0.2849, allocations: 479.3 kB / 415.1 MB, free: 3.324 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2849, allocations: 0 / 415.1 MB, free: 3.324 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04245/0.3274, allocations: 26.2 MB / 441.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002518/0.3277, allocations: 274.7 kB / 441.5 MB, free: 9.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.102/2.43, allocations: 4.062 kB / 441.5 MB, free: 9.008 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1)