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.001296/0.001296, allocations: 106.8 kB / 16.45 MB, free: 6.035 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.001359/0.001359, allocations: 189.9 kB / 17.39 MB, free: 5.559 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.443/1.443, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05569/0.05569, allocations: 8.101 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001997/0.001997, allocations: 67.89 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09354/0.09555, allocations: 51.51 MB / 465.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.002705/0.09829, allocations: 1.455 MB / 467 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.1003, allocations: 1.442 MB / 468.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.637e-05/0.1004, allocations: 4 kB / 468.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003337/0.1008, allocations: 107.5 kB / 468.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004231/0.1012, allocations: 167.1 kB / 468.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001649/0.1029, allocations: 0.9023 MB / 469.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003063/0.1032, allocations: 199.1 kB / 469.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.1033, allocations: 61.86 kB / 469.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.915e-05/0.1034, allocations: 71.77 kB / 469.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.1036, allocations: 111.5 kB / 470 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.405e-05/0.1037, allocations: 16 kB / 470 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004064/0.1041, allocations: 231.8 kB / 470.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.577e-05/0.1041, allocations: 47.77 kB / 470.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.1042, allocations: 75.61 kB / 470.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004901/0.1047, allocations: 358.8 kB / 470.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.1047, allocations: 0 / 470.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.1048, allocations: 0 / 470.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1048, allocations: 3.938 kB / 470.7 MB, free: 13.42 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.002074/0.1068, allocations: 0.7128 MB / 471.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.1069, allocations: 19.88 kB / 471.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.084e-05/0.107, allocations: 42.75 kB / 471.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.436e-05/0.107, allocations: 28.78 kB / 471.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.1073, allocations: 230.9 kB / 471.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.998e-05/0.1075, allocations: 75.72 kB / 471.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.1075, allocations: 12.38 kB / 471.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004159/0.1079, allocations: 226.2 kB / 472.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1079, allocations: 0 / 472.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.108, allocations: 4 kB / 472.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.108, allocations: 8 kB / 472.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003723/0.1084, allocations: 207.8 kB / 472.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.1099, allocations: 0.9126 MB / 473.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006032/0.1105, allocations: 238.8 kB / 473.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001929/0.1107, allocations: 112.8 kB / 473.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001413/0.1109, allocations: 81.11 kB / 473.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003941/0.1113, allocations: 178.3 kB / 473.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.473e-06/0.1113, allocations: 0 / 473.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001841/0.1131, allocations: 0.6163 MB / 474.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.1132, allocations: 51.41 kB / 474.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.1134, allocations: 183.3 kB / 474.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.1134, allocations: 29.7 kB / 474.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.223e-05/0.1135, allocations: 128.4 kB / 474.8 MB, free: 9.066 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.602e-05/0.1136, allocations: 79.33 kB / 474.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.1137, allocations: 53.97 kB / 474.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1139, allocations: 330.8 kB / 475.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.1141, allocations: 120.5 kB / 475.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.1143, allocations: 161.2 kB / 475.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000453/0.1148, allocations: 276.2 kB / 475.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1148, allocations: 3.938 kB / 475.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001142/0.116, allocations: 482.6 kB / 476.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.116, allocations: 10.28 kB / 476.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.116, allocations: 0 / 476.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009476/0.117, allocations: 192.7 kB / 476.4 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.1172, allocations: 47.91 kB / 476.5 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007933/0.118, allocations: 0.7202 MB / 477.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/0.1182, allocations: 31.81 kB / 477.2 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.1182, allocations: 12 kB / 477.3 MB, free: 6.504 MB / 350.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 0.0001484/0.1184, allocations: 137.7 kB / 477.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.699e-05/0.1184, allocations: 15.91 kB / 477.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008341/0.1192, allocations: 381.6 kB / 477.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.1193, allocations: 4 kB / 477.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1193, allocations: 0 / 477.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1193, allocations: 0 / 477.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003646/0.1197, allocations: 357.1 kB / 478.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.1197, allocations: 0 / 478.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.1198, allocations: 23.92 kB / 478.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008071/0.1206, allocations: 196.8 kB / 478.3 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.1206, allocations: 8 kB / 478.4 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008508/0.1215, allocations: 0.7319 MB / 479.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1215, allocations: 0 / 479.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007349/0.1222, allocations: 388.4 kB / 479.5 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.302e-05/0.1223, allocations: 89.02 kB / 479.6 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.637e-05/0.1224, allocations: 11.94 kB / 479.6 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.1225, allocations: 11.98 kB / 479.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.651e-05/0.1226, allocations: 23.83 kB / 479.6 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.1226, allocations: 4.094 kB / 479.6 MB, free: 4.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001404/0.1228, allocations: 143.9 kB / 479.7 MB, free: 3.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1228, allocations: 0 / 479.7 MB, free: 3.871 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003379/0.1231, allocations: 63.89 kB / 479.8 MB, free: 3.809 MB / 350.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.001215/0.1244, allocations: 0.9253 MB / 480.7 MB, free: 2.852 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008244/0.1252, allocations: 306.2 kB / 481 MB, free: 2.555 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1252, allocations: 4.25 kB / 481 MB, free: 2.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005572/0.1258, allocations: 171.8 kB / 481.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.1261, allocations: 23.94 kB / 481.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004432/0.1305, allocations: 2.622 MB / 483.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.1309, allocations: 0.7327 MB / 484.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.131, allocations: 25.53 kB / 484.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.1311, allocations: 47.42 kB / 484.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1311, allocations: 0 / 484.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03466/0.1658, allocations: 5.792 MB / 490.4 MB, free: 9.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/11.89, allocations: 14.47 kB / 490.5 MB, free: 9.098 MB / 366.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)