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.001042/0.001042, allocations: 101.5 kB / 16.31 MB, free: 6.391 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.001038/0.001038, allocations: 188.5 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.382/1.382, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04899/0.04899, allocations: 8.083 MB / 299.2 MB, free: 6.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 63.91 kB / 361.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.2102, allocations: 51.51 MB / 413.3 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.002211/0.2125, allocations: 1.449 MB / 414.8 MB, free: 24.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.2137, allocations: 1.442 MB / 416.2 MB, free: 22.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.602e-05/0.2138, allocations: 4 kB / 416.2 MB, free: 22.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002656/0.2141, allocations: 107.4 kB / 416.3 MB, free: 22.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003237/0.2144, allocations: 163.1 kB / 416.5 MB, free: 22.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.2156, allocations: 0.8961 MB / 417.4 MB, free: 21.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001902/0.2158, allocations: 191.1 kB / 417.6 MB, free: 21.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.2159, allocations: 55.89 kB / 417.6 MB, free: 21.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.092e-05/0.216, allocations: 83.64 kB / 417.7 MB, free: 21.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.2161, allocations: 95.66 kB / 417.8 MB, free: 21.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.753e-05/0.2162, allocations: 16 kB / 417.8 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002847/0.2164, allocations: 231.8 kB / 418.1 MB, free: 20.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.4e-05/0.2165, allocations: 43.83 kB / 418.1 MB, free: 20.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.636e-05/0.2166, allocations: 91.52 kB / 418.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003127/0.2169, allocations: 359 kB / 418.5 MB, free: 20.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.2169, allocations: 0 / 418.5 MB, free: 20.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.2169, allocations: 0 / 418.5 MB, free: 20.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.728e-06/0.2169, allocations: 0 / 418.5 MB, free: 20.36 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.0017/0.2186, allocations: 0.7015 MB / 419.2 MB, free: 19.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.874e-05/0.2187, allocations: 19.89 kB / 419.3 MB, free: 19.58 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.194e-05/0.2187, allocations: 50.73 kB / 419.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.222e-05/0.2188, allocations: 20.75 kB / 419.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.2189, allocations: 236 kB / 419.6 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.894e-05/0.219, allocations: 63.97 kB / 419.6 MB, free: 19.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.505e-05/0.219, allocations: 16.38 kB / 419.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003092/0.2194, allocations: 234.2 kB / 419.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2194, allocations: 0 / 419.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.2194, allocations: 11.88 kB / 419.9 MB, free: 18.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.2194, allocations: 8 kB / 419.9 MB, free: 18.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002686/0.2197, allocations: 199.9 kB / 420.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.2208, allocations: 0.9126 MB / 421 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004844/0.2213, allocations: 234 kB / 421.2 MB, free: 17.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.2215, allocations: 118.5 kB / 421.3 MB, free: 17.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.068e-05/0.2216, allocations: 85.09 kB / 421.4 MB, free: 17.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002616/0.2218, allocations: 167.3 kB / 421.6 MB, free: 17.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.422e-06/0.2218, allocations: 0 / 421.6 MB, free: 17.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001519/0.2234, allocations: 0.6143 MB / 422.2 MB, free: 16.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.708e-05/0.2234, allocations: 51.41 kB / 422.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.2235, allocations: 184.9 kB / 422.4 MB, free: 16.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.2236, allocations: 29.7 kB / 422.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.375e-05/0.2236, allocations: 128.2 kB / 422.6 MB, free: 16.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.826e-05/0.2236, allocations: 74.98 kB / 422.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.556e-05/0.2237, allocations: 57.97 kB / 422.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.824e-05/0.2238, allocations: 326.8 kB / 423 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.2239, allocations: 116.5 kB / 423.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.2241, allocations: 161.3 kB / 423.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.2244, allocations: 280.2 kB / 423.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2244, allocations: 3.938 kB / 423.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000885/0.2253, allocations: 478.5 kB / 424.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.2254, allocations: 7.938 kB / 424.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.2254, allocations: 3.984 kB / 424.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008033/0.2262, allocations: 196.7 kB / 424.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.2263, allocations: 43.91 kB / 424.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000465/0.2268, allocations: 0.724 MB / 425 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001778/0.227, allocations: 31.72 kB / 425.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.227, allocations: 8 kB / 425.1 MB, free: 13.46 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.669e-05/0.2271, allocations: 137.8 kB / 425.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.235e-05/0.2272, allocations: 19.75 kB / 425.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006229/0.2278, allocations: 387.7 kB / 425.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2278, allocations: 0 / 425.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.2278, allocations: 3.938 kB / 425.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2278, allocations: 7.984 kB / 425.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001976/0.228, allocations: 349.2 kB / 425.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.228, allocations: 0 / 425.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.113e-05/0.2281, allocations: 19.98 kB / 426 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006764/0.2288, allocations: 200.7 kB / 426.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.2288, allocations: 4 kB / 426.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005253/0.2294, allocations: 0.7358 MB / 426.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2294, allocations: 0 / 426.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005203/0.2299, allocations: 381.5 kB / 427.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.239e-05/0.23, allocations: 96.77 kB / 427.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.23, allocations: 11.94 kB / 427.4 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.2302, allocations: 11.98 kB / 427.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.2302, allocations: 15.97 kB / 427.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.2302, allocations: 8 kB / 427.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.297e-05/0.2303, allocations: 139.9 kB / 427.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2303, allocations: 0 / 427.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002533/0.2306, allocations: 59.98 kB / 427.6 MB, free: 10.77 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.0007197/0.2313, allocations: 0.9252 MB / 428.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006128/0.2319, allocations: 314.5 kB / 428.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2319, allocations: 4.25 kB / 428.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004431/0.2324, allocations: 175.9 kB / 429 MB, free: 9.332 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.2326, allocations: 30 kB / 429 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003123/0.2358, allocations: 2.604 MB / 431.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.2359, allocations: 0.7285 MB / 432.4 MB, free: 5.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.022e-05/0.236, allocations: 29.61 kB / 432.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.549e-05/0.2361, allocations: 55.41 kB / 432.5 MB, free: 5.75 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2361, allocations: 0 / 432.5 MB, free: 5.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1646/0.4006, allocations: 5.701 MB / 438.2 MB, free: 132 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.29, allocations: 11.62 kB / 438.2 MB, free: 124 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)