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.001079/0.001079, allocations: 108.4 kB / 16.03 MB, free: 6.316 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.001084/0.001084, allocations: 195 kB / 16.95 MB, free: 6.145 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.323/1.323, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0501/0.0501, allocations: 8.09 MB / 298.9 MB, free: 6.676 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 63.91 kB / 361.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1696/0.1708, allocations: 51.52 MB / 412.8 MB, free: 25.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.002846/0.1737, allocations: 2.846 MB / 415.7 MB, free: 22.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000957/0.1746, allocations: 0.8211 MB / 416.5 MB, free: 22.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.076e-05/0.1748, allocations: 8 kB / 416.5 MB, free: 22.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002866/0.175, allocations: 119.5 kB / 416.6 MB, free: 21.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002396/0.1753, allocations: 123.3 kB / 416.8 MB, free: 21.81 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.001127/0.1764, allocations: 0.8792 MB / 417.6 MB, free: 20.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.1767, allocations: 294.6 kB / 417.9 MB, free: 20.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.1768, allocations: 122.9 kB / 418 MB, free: 20.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.793e-05/0.1769, allocations: 131.5 kB / 418.2 MB, free: 20.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.1771, allocations: 195.2 kB / 418.4 MB, free: 20.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.125e-05/0.1771, allocations: 28 kB / 418.4 MB, free: 20.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000248/0.1774, allocations: 215.8 kB / 418.6 MB, free: 19.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.783e-05/0.1774, allocations: 67.75 kB / 418.7 MB, free: 19.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.898e-05/0.1775, allocations: 139.3 kB / 418.8 MB, free: 19.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003467/0.1779, allocations: 468.8 kB / 419.3 MB, free: 19.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.1779, allocations: 4 kB / 419.3 MB, free: 19.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1779, allocations: 0 / 419.3 MB, free: 19.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1779, allocations: 0 / 419.3 MB, free: 19.3 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.001671/0.1796, allocations: 0.7838 MB / 420.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.027e-05/0.1796, allocations: 11.89 kB / 420.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.962e-05/0.1797, allocations: 70.73 kB / 420.1 MB, free: 18.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.555e-05/0.1797, allocations: 36.56 kB / 420.2 MB, free: 18.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002186/0.18, allocations: 268.5 kB / 420.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.819e-05/0.18, allocations: 80.47 kB / 420.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.354e-05/0.1801, allocations: 28.38 kB / 420.5 MB, free: 17.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004324/0.1805, allocations: 345.1 kB / 420.9 MB, free: 17.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.1805, allocations: 0 / 420.9 MB, free: 17.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.1806, allocations: 15.98 kB / 420.9 MB, free: 17.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1806, allocations: 8 kB / 420.9 MB, free: 17.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003754/0.1809, allocations: 334.1 kB / 421.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.1821, allocations: 1.307 MB / 422.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008009/0.1829, allocations: 0.5591 MB / 423.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.1831, allocations: 216.8 kB / 423.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.95e-05/0.1832, allocations: 11.98 kB / 423.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003676/0.1836, allocations: 267.8 kB / 423.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.124e-06/0.1836, allocations: 3.984 kB / 423.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.002518/0.1861, allocations: 1.062 MB / 424.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.138e-05/0.1861, allocations: 59.41 kB / 424.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.1863, allocations: 195.1 kB / 424.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.1863, allocations: 33.7 kB / 424.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.968e-05/0.1864, allocations: 144.6 kB / 425.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.297e-05/0.1864, allocations: 137.9 kB / 425.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.902e-05/0.1865, allocations: 82.11 kB / 425.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.179e-05/0.1866, allocations: 334.8 kB / 425.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002181/0.1868, allocations: 176.8 kB / 425.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.187, allocations: 219.3 kB / 426 MB, free: 12.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004454/0.1875, allocations: 415 kB / 426.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1875, allocations: 0 / 426.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001282/0.1888, allocations: 0.711 MB / 427.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.1888, allocations: 8 kB / 427.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.1888, allocations: 0 / 427.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.1899, allocations: 299.5 kB / 427.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.1901, allocations: 63.89 kB / 427.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003002/0.1932, allocations: 2.967 MB / 430.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002036/0.1934, allocations: 39.67 kB / 430.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.708e-05/0.1934, allocations: 16 kB / 430.5 MB, free: 7.547 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.0001153/0.1935, allocations: 141.8 kB / 430.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.508e-05/0.1936, allocations: 31.66 kB / 430.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001366/0.195, allocations: 0.7303 MB / 431.4 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.195, allocations: 4 kB / 431.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.195, allocations: 0 / 431.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.195, allocations: 7.938 kB / 431.4 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00163/0.1966, allocations: 1.252 MB / 432.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1966, allocations: 0 / 432.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001493/0.1968, allocations: 51.92 kB / 432.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001041/0.1978, allocations: 308.5 kB / 433 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.1979, allocations: 8 kB / 433 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002809/0.2007, allocations: 2.934 MB / 435.9 MB, free: 1.863 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.2007, allocations: 4 kB / 436 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.202, allocations: 0.7657 MB / 436.7 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.02e-05/0.202, allocations: 108.8 kB / 436.8 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/0.2021, allocations: 15.92 kB / 436.8 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.2023, allocations: 19.98 kB / 436.9 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.2024, allocations: 36.39 kB / 436.9 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.2024, allocations: 15.98 kB / 436.9 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.533e-05/0.2025, allocations: 152 kB / 437.1 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2025, allocations: 0 / 437.1 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004069/0.203, allocations: 127.8 kB / 437.2 MB, free: 0.5859 MB / 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.00165/0.2046, allocations: 1.33 MB / 438.5 MB, free: 15.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.206, allocations: 0.7337 MB / 439.2 MB, free: 14.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.206, allocations: 0 / 439.2 MB, free: 14.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008326/0.2068, allocations: 0.4893 MB / 439.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.2072, allocations: 31.98 kB / 439.8 MB, free: 13.95 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005754/0.213, allocations: 3.652 MB / 443.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.2133, allocations: 0.7735 MB / 444.2 MB, free: 9.406 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001522/0.2135, allocations: 50.92 kB / 444.2 MB, free: 9.355 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.2136, allocations: 87.41 kB / 444.3 MB, free: 9.27 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2136, allocations: 3.938 kB / 444.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2154/0.429, allocations: 9.707 MB / 454 MB, free: 15.72 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001909/0.4293, allocations: 240.6 kB / 454.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.123/2.553, allocations: 0 / 454.3 MB, free: 15.46 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe 2>&1)