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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 108.3 kB / 17.12 MB, free: 5.926 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001938/0.001939, allocations: 192.6 kB / 20.07 MB, free: 2.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 245.8 MB, free: 4.191 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1588/0.1588, allocations: 8.084 MB / 306 MB, free: 2.652 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 71.83 kB / 422.7 MB, free: 6.898 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2401, allocations: 51.53 MB / 474.2 MB, free: 22.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.00469/0.2448, allocations: 4.599 MB / 478.8 MB, free: 18.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002228/0.247, allocations: 1.765 MB / 480.6 MB, free: 17.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000245/0.2473, allocations: 10.62 kB / 480.6 MB, free: 17.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008088/0.2481, allocations: 499.8 kB / 481.1 MB, free: 16.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005832/0.2487, allocations: 398.5 kB / 481.5 MB, free: 16.47 MB / 350.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.001558/0.2503, allocations: 1.076 MB / 482.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007445/0.2511, allocations: 0.8249 MB / 483.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003994/0.2515, allocations: 329.2 kB / 483.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003068/0.2518, allocations: 381 kB / 484.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005842/0.2524, allocations: 0.572 MB / 484.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001251/0.2525, allocations: 80.12 kB / 484.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005176/0.253, allocations: 313.6 kB / 485 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002744/0.2533, allocations: 429.5 kB / 485.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003863/0.2537, allocations: 0.6006 MB / 486.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001318/0.255, allocations: 1.662 MB / 487.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.255, allocations: 0 / 487.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2551, allocations: 0 / 487.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.2551, allocations: 0 / 487.7 MB, free: 12.44 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.003715/0.2588, allocations: 1.947 MB / 489.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.2588, allocations: 14.23 kB / 489.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/0.259, allocations: 112.8 kB / 489.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002223/0.2592, allocations: 154.7 kB / 489.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.2603, allocations: 0.9755 MB / 490.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.2605, allocations: 216.4 kB / 491.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-05/0.2605, allocations: 65.88 kB / 491.2 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.2617, allocations: 0.8346 MB / 492 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.2618, allocations: 4 kB / 492 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.033e-05/0.2618, allocations: 27 kB / 492.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/0.2619, allocations: 14.44 kB / 492.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.2629, allocations: 0.6714 MB / 492.7 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004234/0.2672, allocations: 3.566 MB / 496.3 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001772/0.269, allocations: 1.421 MB / 497.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007111/0.2697, allocations: 0.5038 MB / 498.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000157/0.2698, allocations: 102.1 kB / 498.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008697/0.2707, allocations: 0.5437 MB / 498.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=89): time 2.825e-06/0.2707, allocations: 3.938 kB / 498.9 MB, free: 3.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.007153/0.2779, allocations: 2.539 MB / 0.4897 GB, free: 0.8555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/0.278, allocations: 270 kB / 0.4899 GB, free: 0.5273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002382/0.2804, allocations: 1.787 MB / 0.4917 GB, free: 14.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.569e-05/0.2805, allocations: 45.64 kB / 0.4917 GB, free: 14.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004736/0.2809, allocations: 494.1 kB / 0.4922 GB, free: 14.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002778/0.2812, allocations: 305.3 kB / 0.4925 GB, free: 13.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002571/0.2815, allocations: 154.6 kB / 0.4926 GB, free: 13.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.2817, allocations: 337.9 kB / 0.4929 GB, free: 13.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00069/0.2824, allocations: 357.8 kB / 0.4933 GB, free: 13.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008161/0.2832, allocations: 0.4988 MB / 0.4938 GB, free: 12.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006165/0.2894, allocations: 1.948 MB / 0.4957 GB, free: 10.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.2894, allocations: 0 / 0.4957 GB, free: 10.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003428/0.2928, allocations: 1.419 MB / 0.4971 GB, free: 9.105 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.2929, allocations: 8 kB / 0.4971 GB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.2929, allocations: 80 / 0.4971 GB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001786/0.2947, allocations: 0.5449 MB / 0.4976 GB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004295/0.2951, allocations: 111.9 kB / 0.4977 GB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/0.2968, allocations: 1.193 MB / 0.4989 GB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006964/0.2975, allocations: 87.48 kB / 0.499 GB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.759e-05/0.2976, allocations: 24 kB / 0.499 GB, free: 7.109 MB / 366.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.0007656/0.2984, allocations: 451.9 kB / 0.4994 GB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.2986, allocations: 127.2 kB / 0.4995 GB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003403/0.302, allocations: 1.487 MB / 0.501 GB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.302, allocations: 8 kB / 0.501 GB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.302, allocations: 0 / 0.501 GB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.3021, allocations: 15.95 kB / 0.501 GB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005416/0.3075, allocations: 3.138 MB / 0.5041 GB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.3075, allocations: 4 kB / 0.5041 GB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003878/0.3079, allocations: 99.88 kB / 0.5042 GB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/0.3097, allocations: 0.5316 MB / 0.5047 GB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.844e-05/0.3097, allocations: 20 kB / 0.5047 GB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001707/0.3114, allocations: 1.158 MB / 0.5058 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3114, allocations: 4 kB / 0.5058 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004301/0.3158, allocations: 1.998 MB / 0.5078 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000519/0.3163, allocations: 287.9 kB / 0.5081 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.3164, allocations: 16 kB / 0.5081 GB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005323/0.317, allocations: 56.12 kB / 0.5081 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.3172, allocations: 76.83 kB / 0.5082 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-05/0.3172, allocations: 24 kB / 0.5082 GB, free: 13.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00184/0.3191, allocations: 1.289 MB / 0.5095 GB, free: 12.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3191, allocations: 0 / 0.5095 GB, free: 12.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00073/0.3198, allocations: 239.8 kB / 0.5097 GB, free: 11.95 MB / 382.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.005413/0.3252, allocations: 2.73 MB / 0.5124 GB, free: 9.262 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002887/0.3282, allocations: 1.112 MB / 0.5135 GB, free: 8.148 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.3282, allocations: 4.375 kB / 0.5135 GB, free: 8.145 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001905/0.3301, allocations: 0.68 MB / 0.5141 GB, free: 7.465 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009178/0.331, allocations: 118.7 kB / 0.5143 GB, free: 7.348 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02153/0.3526, allocations: 12.97 MB / 0.5269 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009366/0.3535, allocations: 1.173 MB / 0.5281 GB, free: 9.023 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004779/0.354, allocations: 159.2 kB / 0.5282 GB, free: 8.863 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006012/0.3546, allocations: 431.3 kB / 0.5286 GB, free: 8.441 MB / 398.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3546, allocations: 0 / 0.5286 GB, free: 8.441 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06048/0.4151, allocations: 27.11 MB / 0.5551 GB, free: 13.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/13.84, allocations: 7.812 kB / 0.5551 GB, free: 13.47 MB / 430.1 MB " [Timeout remaining time 646] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.518500000005588] Failed to read output from testmodel.py, exit status != 0: 14.004994640010409 14.024602592 13.766069252 Calling exit ...