Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.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.UsingDiesel.OneDieselRescuingOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad",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.001138/0.001138, allocations: 108 kB / 16.32 MB, free: 6.395 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.001126/0.001126, allocations: 185.4 kB / 17.24 MB, free: 5.922 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.36/1.36, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04866/0.04866, allocations: 8.087 MB / 299.2 MB, free: 6.727 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 63.89 kB / 361.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.2211, allocations: 51.52 MB / 413.4 MB, free: 25.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003192/0.2244, allocations: 2.809 MB / 416.2 MB, free: 22.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.2257, allocations: 0.8289 MB / 417 MB, free: 21.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.2258, allocations: 4 kB / 417 MB, free: 21.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003841/0.2262, allocations: 135.2 kB / 417.1 MB, free: 21.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003793/0.2266, allocations: 143.1 kB / 417.3 MB, free: 21.64 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.001328/0.228, allocations: 0.9331 MB / 418.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003513/0.2283, allocations: 302.6 kB / 418.5 MB, free: 20.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.2285, allocations: 126.9 kB / 418.6 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.2287, allocations: 135.5 kB / 418.8 MB, free: 20.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00022/0.2289, allocations: 183.3 kB / 418.9 MB, free: 19.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.429e-05/0.2289, allocations: 28 kB / 419 MB, free: 19.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000387/0.2293, allocations: 211.8 kB / 419.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.513e-05/0.2294, allocations: 67.69 kB / 419.2 MB, free: 19.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.2295, allocations: 151.2 kB / 419.4 MB, free: 19.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004752/0.23, allocations: 464.9 kB / 419.8 MB, free: 19.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.23, allocations: 3.984 kB / 419.8 MB, free: 19.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.23, allocations: 0 / 419.8 MB, free: 19.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.23, allocations: 0 / 419.8 MB, free: 19.07 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.001874/0.2319, allocations: 0.7799 MB / 420.6 MB, free: 18.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.2319, allocations: 19.83 kB / 420.6 MB, free: 18.22 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.007e-05/0.232, allocations: 62.72 kB / 420.7 MB, free: 18.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.226e-05/0.2321, allocations: 36.56 kB / 420.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/0.2324, allocations: 274.1 kB / 421 MB, free: 17.81 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.574e-05/0.2324, allocations: 80.47 kB / 421.1 MB, free: 17.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.459e-05/0.2325, allocations: 32.38 kB / 421.1 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004485/0.2329, allocations: 349.1 kB / 421.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.2329, allocations: 0 / 421.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.135e-05/0.233, allocations: 8 kB / 421.5 MB, free: 17.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.233, allocations: 11.94 kB / 421.5 MB, free: 17.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004189/0.2334, allocations: 330.1 kB / 421.8 MB, free: 17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.2346, allocations: 1.307 MB / 423.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008595/0.2355, allocations: 0.5708 MB / 423.7 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002438/0.2358, allocations: 212.6 kB / 423.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.706e-05/0.2358, allocations: 12 kB / 423.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000389/0.2362, allocations: 263.9 kB / 424.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.974e-06/0.2362, allocations: 0 / 424.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.002705/0.2389, allocations: 1.062 MB / 425.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.085e-05/0.239, allocations: 55.41 kB / 425.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.2391, allocations: 194.6 kB / 425.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.2392, allocations: 37.7 kB / 425.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.368e-05/0.2392, allocations: 136.6 kB / 425.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.666e-05/0.2393, allocations: 145.9 kB / 425.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.2394, allocations: 82.11 kB / 425.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.95e-05/0.2395, allocations: 334.8 kB / 426.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002466/0.2397, allocations: 172.8 kB / 426.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002686/0.24, allocations: 223.3 kB / 426.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005162/0.2405, allocations: 415 kB / 427 MB, free: 11.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.2405, allocations: 0 / 427 MB, free: 11.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001425/0.242, allocations: 0.7109 MB / 427.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.242, allocations: 8 kB / 427.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.242, allocations: 0 / 427.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.2432, allocations: 312.5 kB / 428 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002133/0.2434, allocations: 59.91 kB / 428.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003372/0.2468, allocations: 2.964 MB / 431 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/0.2471, allocations: 31.62 kB / 431.1 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.227e-05/0.2471, allocations: 19.98 kB / 431.1 MB, free: 7.32 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 {(6,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001539/0.2473, allocations: 149.8 kB / 431.2 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.499e-05/0.2473, allocations: 31.66 kB / 431.2 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.2488, allocations: 0.7186 MB / 432 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.2488, allocations: 8 kB / 432 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.2488, allocations: 0 / 432 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.2489, allocations: 7.922 kB / 432 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001748/0.2506, allocations: 1.26 MB / 433.2 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.2506, allocations: 0 / 433.2 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.2508, allocations: 55.91 kB / 433.3 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001041/0.2518, allocations: 304.5 kB / 433.6 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.2519, allocations: 11.98 kB / 433.6 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003047/0.2549, allocations: 2.924 MB / 436.5 MB, free: 1.637 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2549, allocations: 3.938 kB / 436.5 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.2563, allocations: 0.7735 MB / 437.3 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.658e-05/0.2563, allocations: 104.8 kB / 437.4 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.66e-05/0.2564, allocations: 11.94 kB / 437.4 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.2566, allocations: 15.98 kB / 437.4 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.803e-05/0.2567, allocations: 44.38 kB / 437.5 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.2567, allocations: 12 kB / 437.5 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.824e-05/0.2568, allocations: 148 kB / 437.6 MB, free: 500 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2568, allocations: 0 / 437.6 MB, free: 500 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004402/0.2573, allocations: 127.8 kB / 437.8 MB, free: 372 kB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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 {(6,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001771/0.259, allocations: 1.334 MB / 439.1 MB, free: 15 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001405/0.2605, allocations: 0.726 MB / 439.8 MB, free: 14.26 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2605, allocations: 0 / 439.8 MB, free: 14.26 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008687/0.2614, allocations: 0.4971 MB / 440.3 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.2617, allocations: 31.98 kB / 440.4 MB, free: 13.72 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005342/0.2671, allocations: 3.555 MB / 443.9 MB, free: 10.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.2674, allocations: 0.7696 MB / 444.7 MB, free: 9.277 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001487/0.2675, allocations: 46.92 kB / 444.7 MB, free: 9.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.2677, allocations: 83.41 kB / 444.8 MB, free: 9.148 MB / 318.1 MB Notification: Performance of SimCode: time 6.62e-07/0.2677, allocations: 7.938 kB / 444.8 MB, free: 9.141 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03285/0.3005, allocations: 9.823 MB / 454.6 MB, free: 15.44 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.49, allocations: 4.047 kB / 454.6 MB, free: 15.43 MB / 334.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe 2>&1)