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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 108.4 kB / 16.92 MB, free: 5.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 191.3 kB / 17.85 MB, free: 5.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 42.31 kB / 300.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.09662, allocations: 49.45 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.008289/0.105, allocations: 3.973 MB / 354.1 MB, free: 356 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004162/0.1092, allocations: 1.909 MB / 356 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006907/0.1099, allocations: 15.94 kB / 356.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00155/0.1115, allocations: 0.5837 MB / 356.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001153/0.1128, allocations: 342.2 kB / 357 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009384/0.1137, allocations: 295.4 kB / 357.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001483/0.1152, allocations: 0.9732 MB / 358.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005881/0.1158, allocations: 364.5 kB / 358.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004967/0.1163, allocations: 382.7 kB / 359 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000633/0.117, allocations: 494.3 kB / 359.5 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001761/0.1172, allocations: 80 kB / 359.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003468/0.1175, allocations: 140 kB / 359.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000416/0.1179, allocations: 462.7 kB / 360.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000725/0.1187, allocations: 0.629 MB / 360.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001468/0.1201, allocations: 1.729 MB / 362.5 MB, free: 7.969 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.1202, allocations: 8 kB / 362.5 MB, free: 7.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1202, allocations: 0 / 362.5 MB, free: 7.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.496e-05/0.1202, allocations: 3.938 kB / 362.5 MB, free: 7.957 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.00322/0.1235, allocations: 1.814 MB / 364.3 MB, free: 6.086 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.1235, allocations: 12.03 kB / 364.3 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001186/0.1236, allocations: 94.7 kB / 364.4 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002652/0.1239, allocations: 163 kB / 364.6 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001751/0.1257, allocations: 1.157 MB / 365.7 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003233/0.126, allocations: 144.7 kB / 365.9 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.861e-05/0.1261, allocations: 48 kB / 365.9 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.1272, allocations: 0.6635 MB / 366.6 MB, free: 3.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.1273, allocations: 3.938 kB / 366.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.327e-05/0.1273, allocations: 24 kB / 366.6 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.1273, allocations: 16 kB / 366.6 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008751/0.1282, allocations: 447.6 kB / 367.1 MB, free: 3.219 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004427/0.1327, allocations: 2.898 MB / 370 MB, free: 220 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1644/0.2971, allocations: 437.6 kB / 370.4 MB, free: 24.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008117/0.2979, allocations: 323.3 kB / 370.7 MB, free: 24.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.298, allocations: 3 kB / 370.7 MB, free: 24.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.298, allocations: 43.19 kB / 370.7 MB, free: 24.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.484e-06/0.298, allocations: 0 / 370.7 MB, free: 24.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.002152/0.3002, allocations: 0.8007 MB / 371.5 MB, free: 24.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.204e-05/0.3003, allocations: 266.6 kB / 371.8 MB, free: 24.4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003324/0.3036, allocations: 2.231 MB / 374 MB, free: 23.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.543e-05/0.3037, allocations: 32.45 kB / 374.1 MB, free: 23.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004298/0.3041, allocations: 0.6398 MB / 374.7 MB, free: 23.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.55e-05/0.3042, allocations: 108 kB / 374.8 MB, free: 23.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.3043, allocations: 82.73 kB / 374.9 MB, free: 23.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.55e-05/0.3044, allocations: 318.3 kB / 375.2 MB, free: 22.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003834/0.3048, allocations: 171.6 kB / 375.4 MB, free: 22.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004573/0.3052, allocations: 313.8 kB / 375.7 MB, free: 22.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007653/0.306, allocations: 424 kB / 376.1 MB, free: 22.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.306, allocations: 0 / 376.1 MB, free: 22.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001466/0.3075, allocations: 0.6628 MB / 376.8 MB, free: 22.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3075, allocations: 5.812 kB / 376.8 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.3075, allocations: 1.562 kB / 376.8 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002938/0.3078, allocations: 73.34 kB / 376.8 MB, free: 22.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004062/0.3083, allocations: 93.06 kB / 376.9 MB, free: 22.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/0.3097, allocations: 1.772 MB / 378.7 MB, free: 20.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005643/0.3103, allocations: 57.45 kB / 378.8 MB, free: 20.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/0.3103, allocations: 16.52 kB / 378.8 MB, free: 20.56 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.0006816/0.311, allocations: 497.6 kB / 379.3 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/0.3113, allocations: 133.2 kB / 379.4 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002689/0.3115, allocations: 165 kB / 379.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3116, allocations: 2.594 kB / 379.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3116, allocations: 1.594 kB / 379.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.3116, allocations: 4.969 kB / 379.6 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002997/0.3146, allocations: 1.681 MB / 381.2 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3146, allocations: 1.125 kB / 381.2 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003644/0.315, allocations: 74.27 kB / 381.3 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001913/0.3152, allocations: 59.98 kB / 381.4 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.897e-05/0.3152, allocations: 8.109 kB / 381.4 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/0.3164, allocations: 1.717 MB / 383.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3164, allocations: 1.766 kB / 383.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001642/0.3181, allocations: 0.8402 MB / 383.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005089/0.3186, allocations: 328.1 kB / 384.3 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001809/0.3188, allocations: 11.67 kB / 384.3 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005303/0.3193, allocations: 48.97 kB / 384.3 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.3194, allocations: 39.59 kB / 384.4 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.3195, allocations: 8.344 kB / 384.4 MB, free: 17.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002211/0.3217, allocations: 1.603 MB / 386 MB, free: 16.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.082e-06/0.3217, allocations: 0 / 386 MB, free: 16.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008382/0.3225, allocations: 204.4 kB / 386.2 MB, free: 16.55 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.002854/0.3254, allocations: 1.74 MB / 387.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.3267, allocations: 0.5434 MB / 388.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.3267, allocations: 1.375 kB / 388.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005713/0.3273, allocations: 335.5 kB / 388.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.3284, allocations: 210.7 kB / 389 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02092/0.3493, allocations: 15.46 MB / 404.4 MB, free: 2.117 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007416/0.3501, allocations: 1.26 MB / 405.7 MB, free: 0.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005492/0.3507, allocations: 211.8 kB / 405.9 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004728/0.3512, allocations: 479.3 kB / 406.4 MB, free: 156 kB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3512, allocations: 0 / 406.4 MB, free: 156 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05572/0.4069, allocations: 27.48 MB / 433.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.91, allocations: 26.55 kB / 433.9 MB, free: 4.91 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1)