Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo) 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(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad",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.001133/0.001133, allocations: 105.3 kB / 16.31 MB, free: 6.359 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.001028/0.001028, allocations: 184.6 kB / 17.24 MB, free: 5.879 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.362/1.362, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04708/0.04708, allocations: 8.109 MB / 299.2 MB, free: 6.703 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002317/0.002317, allocations: 63.91 kB / 361.8 MB, free: 8.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2359, allocations: 51.51 MB / 413.3 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.004718/0.2406, allocations: 4.613 MB / 418 MB, free: 20.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.2432, allocations: 1.748 MB / 419.7 MB, free: 19.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002612/0.2435, allocations: 11.94 kB / 419.7 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007362/0.2442, allocations: 0.4924 MB / 420.2 MB, free: 18.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005508/0.2448, allocations: 394 kB / 420.6 MB, free: 18.29 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:34:7-34:67:writable] Warning: In relation diesel.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001456/0.2463, allocations: 1.066 MB / 421.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005857/0.2469, allocations: 0.8217 MB / 422.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003693/0.2472, allocations: 333.5 kB / 422.8 MB, free: 16.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002718/0.2475, allocations: 386.7 kB / 423.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004937/0.248, allocations: 0.5724 MB / 423.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.655e-05/0.2481, allocations: 80 kB / 423.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004157/0.2486, allocations: 303.8 kB / 424.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002198/0.2488, allocations: 430.8 kB / 424.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003328/0.2491, allocations: 0.6059 MB / 425.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.2502, allocations: 1.636 MB / 426.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2502, allocations: 0 / 426.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2502, allocations: 0 / 426.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.658e-05/0.2502, allocations: 0 / 426.8 MB, free: 12.06 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.003778/0.254, allocations: 1.902 MB / 428.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.254, allocations: 15.89 kB / 428.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.654e-05/0.2541, allocations: 110.6 kB / 428.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001813/0.2543, allocations: 147.2 kB / 429 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009352/0.2553, allocations: 0.966 MB / 429.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.2554, allocations: 228 kB / 430.2 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.38e-05/0.2555, allocations: 60.38 kB / 430.2 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.2566, allocations: 0.8317 MB / 431 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.2566, allocations: 0 / 431 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.968e-05/0.2567, allocations: 28 kB / 431.1 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.2567, allocations: 16 kB / 431.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009634/0.2576, allocations: 0.6805 MB / 431.8 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003714/0.2614, allocations: 3.573 MB / 435.3 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001755/0.2631, allocations: 1.433 MB / 436.8 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006984/0.2639, allocations: 0.5002 MB / 437.3 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001303/0.264, allocations: 102.1 kB / 437.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007804/0.2648, allocations: 0.5437 MB / 437.9 MB, free: 432 kB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 2.425e-06/0.2648, allocations: 0 / 437.9 MB, free: 432 kB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.007875/0.2727, allocations: 2.523 MB / 440.4 MB, free: 13.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.2728, allocations: 278 kB / 440.7 MB, free: 13.54 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002312/0.2752, allocations: 1.783 MB / 442.5 MB, free: 11.74 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.827e-05/0.2752, allocations: 41.7 kB / 442.5 MB, free: 11.69 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004402/0.2757, allocations: 489.6 kB / 443 MB, free: 11.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002434/0.2759, allocations: 295.7 kB / 443.3 MB, free: 10.92 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002302/0.2762, allocations: 146.6 kB / 443.4 MB, free: 10.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2763, allocations: 337.9 kB / 443.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000663/0.277, allocations: 365.8 kB / 444.1 MB, free: 10.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007855/0.2778, allocations: 0.491 MB / 444.6 MB, free: 9.543 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006009/0.2838, allocations: 1.947 MB / 446.6 MB, free: 7.574 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.2838, allocations: 4 kB / 446.6 MB, free: 7.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.0032/0.287, allocations: 1.415 MB / 448 MB, free: 6.145 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.2871, allocations: 4 kB / 448 MB, free: 6.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.2871, allocations: 4 kB / 448 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001734/0.2888, allocations: 0.5527 MB / 448.6 MB, free: 5.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004281/0.2893, allocations: 111.8 kB / 448.7 MB, free: 5.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001553/0.2908, allocations: 1.181 MB / 449.8 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005826/0.2914, allocations: 87.19 kB / 449.9 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.648e-05/0.2915, allocations: 31.98 kB / 450 MB, free: 4.145 MB / 318.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.battery.SOC_start fixed = true ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 (delay.firstTrigger,$PRE.delay.firstTrigger,$whenCondition2,delay.sampleTrigger,$whenCondition1,$PRE.delay.y,delay.y,o.y,n1.y,n2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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 {(12,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0005985/0.2921, allocations: 448.8 kB / 450.4 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.2923, allocations: 126.5 kB / 450.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003246/0.2955, allocations: 1.49 MB / 452 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.2956, allocations: 11.94 kB / 452 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.2956, allocations: 0 / 452 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.2956, allocations: 7.984 kB / 452 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00513/0.3007, allocations: 3.142 MB / 455.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3007, allocations: 0 / 455.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003809/0.3011, allocations: 103.8 kB / 455.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001678/0.3028, allocations: 0.5277 MB / 455.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.017e-05/0.3029, allocations: 23.98 kB / 455.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001505/0.3044, allocations: 1.154 MB / 457 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3044, allocations: 8 kB / 457 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004017/0.3084, allocations: 1.999 MB / 459 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003552/0.3088, allocations: 271.3 kB / 459.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/0.3089, allocations: 16 kB / 459.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005493/0.3095, allocations: 60.02 kB / 459.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.3097, allocations: 72.89 kB / 459.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.107e-05/0.3097, allocations: 24 kB / 459.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001539/0.3113, allocations: 1.289 MB / 460.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3113, allocations: 0 / 460.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006714/0.312, allocations: 243.6 kB / 460.9 MB, free: 8.984 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 8 (delay.sampleTrigger,$whenCondition2,$whenCondition1,n2.y,n1.y,o.y,delay.firstTrigger,delay.y) * Number of discrete states: 1 (delay.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(12,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004798/0.3168, allocations: 2.733 MB / 463.7 MB, free: 6.293 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003064/0.3199, allocations: 1.132 MB / 464.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3199, allocations: 384 / 464.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001801/0.3217, allocations: 0.6801 MB / 465.5 MB, free: 4.484 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007935/0.3225, allocations: 118.9 kB / 465.6 MB, free: 4.371 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02081/0.3433, allocations: 13.88 MB / 479.5 MB, free: 6.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007763/0.3441, allocations: 1.173 MB / 480.7 MB, free: 4.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000416/0.3446, allocations: 167.2 kB / 480.8 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005572/0.3451, allocations: 431.3 kB / 481.2 MB, free: 4.34 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3451, allocations: 0 / 481.2 MB, free: 4.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05439/0.3995, allocations: 26.59 MB / 0.4959 GB, free: 9.887 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.48, allocations: 10.33 kB / 0.496 GB, free: 9.883 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)