Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.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.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",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.001273/0.001273, allocations: 106.3 kB / 16.03 MB, free: 6.32 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.001336/0.001336, allocations: 199.9 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.321/1.321, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05051/0.05051, allocations: 8.1 MB / 298.9 MB, free: 6.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 59.91 kB / 361.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2084, allocations: 51.51 MB / 412.8 MB, free: 25.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.00241/0.2109, allocations: 1.493 MB / 414.3 MB, free: 24.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.2124, allocations: 1.434 MB / 415.8 MB, free: 22.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.47e-05/0.2125, allocations: 4 kB / 415.8 MB, free: 22.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003357/0.2128, allocations: 95.66 kB / 415.9 MB, free: 22.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003919/0.2133, allocations: 143.4 kB / 416 MB, free: 22.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.2144, allocations: 0.8522 MB / 416.9 MB, free: 21.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00021/0.2146, allocations: 195.1 kB / 417 MB, free: 21.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.2148, allocations: 54.84 kB / 417.1 MB, free: 21.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.281e-05/0.2148, allocations: 79.7 kB / 417.2 MB, free: 21.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.215, allocations: 103.6 kB / 417.3 MB, free: 21.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.524e-05/0.215, allocations: 16 kB / 417.3 MB, free: 21.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002917/0.2153, allocations: 227.8 kB / 417.5 MB, free: 21.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.339e-05/0.2153, allocations: 43.77 kB / 417.6 MB, free: 21.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.546e-05/0.2154, allocations: 91.58 kB / 417.7 MB, free: 20.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003433/0.2158, allocations: 359 kB / 418 MB, free: 20.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2158, allocations: 0 / 418 MB, free: 20.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2158, allocations: 0 / 418 MB, free: 20.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.2158, allocations: 0 / 418 MB, free: 20.57 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001841/0.2176, allocations: 0.71 MB / 418.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.2177, allocations: 19.83 kB / 418.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.824e-05/0.2178, allocations: 54.73 kB / 418.8 MB, free: 19.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.844e-05/0.2178, allocations: 20.75 kB / 418.8 MB, free: 19.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002117/0.218, allocations: 238.7 kB / 419 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.516e-05/0.2181, allocations: 67.97 kB / 419.1 MB, free: 19.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.05e-05/0.2182, allocations: 20.31 kB / 419.1 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003379/0.2185, allocations: 222.3 kB / 419.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2185, allocations: 0 / 419.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.2186, allocations: 8 kB / 419.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.2186, allocations: 8 kB / 419.4 MB, free: 19.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002899/0.2189, allocations: 195.9 kB / 419.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.22, allocations: 0.9087 MB / 420.5 MB, free: 17.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004966/0.2206, allocations: 242.8 kB / 420.7 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.2207, allocations: 108.8 kB / 420.8 MB, free: 17.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001095/0.2208, allocations: 89.09 kB / 420.9 MB, free: 17.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003316/0.2212, allocations: 164.8 kB / 421 MB, free: 17.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.412e-06/0.2212, allocations: 4 kB / 421.1 MB, free: 17.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001605/0.2228, allocations: 0.6104 MB / 421.7 MB, free: 16.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.425e-05/0.2228, allocations: 51.41 kB / 421.7 MB, free: 16.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.223, allocations: 175.3 kB / 421.9 MB, free: 16.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.223, allocations: 33.69 kB / 421.9 MB, free: 16.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.527e-05/0.2231, allocations: 132.2 kB / 422 MB, free: 16.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.191e-05/0.2231, allocations: 74.98 kB / 422.1 MB, free: 16.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.401e-05/0.2232, allocations: 53.98 kB / 422.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.397e-05/0.2233, allocations: 326.8 kB / 422.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.2234, allocations: 116.5 kB / 422.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.2236, allocations: 169.2 kB / 422.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003296/0.224, allocations: 277.1 kB / 423 MB, free: 15.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.224, allocations: 3.938 kB / 423 MB, free: 15.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009267/0.2249, allocations: 478 kB / 423.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.225, allocations: 7.984 kB / 423.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.225, allocations: 0 / 423.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008739/0.2258, allocations: 192.7 kB / 423.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.226, allocations: 43.92 kB / 423.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004954/0.2265, allocations: 0.7202 MB / 424.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.2267, allocations: 27.69 kB / 424.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.2267, allocations: 12 kB / 424.5 MB, free: 13.68 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (load.degradedMode,$PRE.load.degradedMode,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 {(3,5)} Notification: Performance of prepare postOptimizeDAE: time 9.711e-05/0.2269, allocations: 141.8 kB / 424.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.171e-05/0.2269, allocations: 15.81 kB / 424.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006481/0.2275, allocations: 388 kB / 425 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.2276, allocations: 7.938 kB / 425 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.2276, allocations: 4.094 kB / 425.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.2276, allocations: 3.984 kB / 425.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.2278, allocations: 345.2 kB / 425.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2278, allocations: 0 / 425.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.719e-05/0.2279, allocations: 23.98 kB / 425.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007267/0.2287, allocations: 196.6 kB / 425.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.2287, allocations: 7.984 kB / 425.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000587/0.2293, allocations: 0.7306 MB / 426.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2293, allocations: 0 / 426.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005558/0.2299, allocations: 381.1 kB / 426.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.696e-05/0.2299, allocations: 104.8 kB / 426.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.767e-05/0.2299, allocations: 7.938 kB / 426.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.2301, allocations: 11.98 kB / 426.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.998e-05/0.2302, allocations: 15.98 kB / 426.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.2302, allocations: 8 kB / 426.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.01e-05/0.2303, allocations: 141.6 kB / 427 MB, free: 11.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2303, allocations: 3.938 kB / 427 MB, free: 11.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000288/0.2306, allocations: 60 kB / 427.1 MB, free: 10.99 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,load.degradedMode) * Number of discrete states: 1 (load.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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 {(4,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007824/0.2314, allocations: 0.9136 MB / 428 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006878/0.2321, allocations: 322.6 kB / 428.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.2321, allocations: 4.062 kB / 428.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004845/0.2326, allocations: 175.9 kB / 428.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.2328, allocations: 20.12 kB / 428.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003343/0.2362, allocations: 2.676 MB / 431.2 MB, free: 6.742 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.2363, allocations: 0.7285 MB / 431.9 MB, free: 5.988 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.2364, allocations: 29.53 kB / 431.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.513e-05/0.2365, allocations: 47.42 kB / 432 MB, free: 5.914 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2365, allocations: 0 / 432 MB, free: 5.914 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01534/0.2519, allocations: 5.596 MB / 437.6 MB, free: 452 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/0.2521, allocations: 217 kB / 437.8 MB, free: 196 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/2.054, allocations: 0 / 437.8 MB, free: 196 kB / 302.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads.fmu > PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe 2>&1)