Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.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.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",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.004954/0.004954, allocations: 88.56 kB / 15.91 MB, free: 6.312 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.001101/0.001101, allocations: 194.9 kB / 16.83 MB, free: 6.242 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.282/1.282, allocations: 222.9 MB / 240.5 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.154/0.154, allocations: 8.085 MB / 298.7 MB, free: 2.031 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 59.91 kB / 361.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08694/0.08815, allocations: 51.52 MB / 412.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.003154/0.09133, allocations: 2.462 MB / 415.1 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002108/0.09346, allocations: 1.711 MB / 416.8 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001993/0.09368, allocations: 8 kB / 416.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003821/0.09409, allocations: 139.4 kB / 417 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004523/0.09455, allocations: 190.9 kB / 417.2 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001628/0.09619, allocations: 1 MB / 418.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004937/0.09669, allocations: 449.8 kB / 418.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/0.09692, allocations: 144.4 kB / 418.7 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.09713, allocations: 171.3 kB / 418.9 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000287/0.09742, allocations: 242.9 kB / 419.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.21e-05/0.09749, allocations: 32 kB / 419.2 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004003/0.0979, allocations: 235.8 kB / 419.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.759e-05/0.09797, allocations: 75.62 kB / 419.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001977/0.09818, allocations: 234.8 kB / 419.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000648/0.09883, allocations: 0.6273 MB / 420.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.09884, allocations: 0 / 420.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.09885, allocations: 0 / 420.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.09886, allocations: 0 / 420.3 MB, free: 2.332 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003292/0.1022, allocations: 1.177 MB / 421.5 MB, free: 1.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.1022, allocations: 8.031 kB / 421.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.91e-05/0.1023, allocations: 70.72 kB / 421.6 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002564/0.1025, allocations: 68.33 kB / 421.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003911/0.1029, allocations: 355.5 kB / 422 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.103, allocations: 28.97 kB / 422 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.072e-05/0.103, allocations: 40.38 kB / 422.1 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006493/0.1037, allocations: 446.5 kB / 422.5 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.1037, allocations: 11.88 kB / 422.5 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.667e-05/0.1038, allocations: 12 kB / 422.5 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.1038, allocations: 8 kB / 422.5 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006157/0.1044, allocations: 450.5 kB / 423 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002222/0.1066, allocations: 1.983 MB / 425 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.1076, allocations: 0.6923 MB / 425.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003801/0.108, allocations: 301.2 kB / 426 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.927e-05/0.1081, allocations: 11.98 kB / 426 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005928/0.1087, allocations: 468.6 kB / 426.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.144e-06/0.1087, allocations: 0 / 426.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.005483/0.1142, allocations: 1.806 MB / 428.2 MB, free: 10.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.699e-05/0.1143, allocations: 192.4 kB / 428.4 MB, free: 9.777 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003497/0.1147, allocations: 306.9 kB / 428.7 MB, free: 9.469 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.871e-05/0.1147, allocations: 41.7 kB / 428.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.329e-05/0.1148, allocations: 168.8 kB / 428.9 MB, free: 9.254 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.115, allocations: 165.6 kB / 429.1 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.1151, allocations: 106.2 kB / 429.2 MB, free: 8.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1152, allocations: 346.8 kB / 429.5 MB, free: 8.633 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003938/0.1156, allocations: 273.1 kB / 429.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004479/0.1161, allocations: 347.8 kB / 430.1 MB, free: 8.008 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006833/0.1229, allocations: 2.078 MB / 432.2 MB, free: 5.887 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.123, allocations: 3.938 kB / 432.2 MB, free: 5.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002699/0.1257, allocations: 1.18 MB / 433.4 MB, free: 4.684 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.873e-05/0.1257, allocations: 45.52 kB / 433.4 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.1257, allocations: 0 / 433.4 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002198/0.1279, allocations: 0.5275 MB / 434 MB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.1283, allocations: 79.89 kB / 434 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005076/0.1333, allocations: 3.634 MB / 437.7 MB, free: 268 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.1337, allocations: 47.53 kB / 437.7 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.555e-05/0.1338, allocations: 23.98 kB / 437.7 MB, free: 196 kB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: line2.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean line2.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real line2.myFault.Y.im:DISCRETE(start = 0.0 fixed = true ) "Imaginary part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.line2.myFault.fault,line2.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.line2.myFault.Y.re,$PRE.line2.myFault.Y.im,line2.myFault.Y.im,line2.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 1 * 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,15)} Notification: Performance of prepare postOptimizeDAE: time 0.1558/0.2896, allocations: 229.5 kB / 438 MB, free: 57.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.2898, allocations: 37.91 kB / 438 MB, free: 57.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002634/0.2924, allocations: 1.134 MB / 439.1 MB, free: 57.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.2924, allocations: 2.875 kB / 439.1 MB, free: 57.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.2924, allocations: 3.234 kB / 439.2 MB, free: 57.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.2925, allocations: 4.875 kB / 439.2 MB, free: 57.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002945/0.2954, allocations: 1.831 MB / 441 MB, free: 57.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.2954, allocations: 0 / 441 MB, free: 57.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.2956, allocations: 48.27 kB / 441 MB, free: 57.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002056/0.2976, allocations: 0.5031 MB / 441.5 MB, free: 57.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.02e-05/0.2977, allocations: 16.77 kB / 441.6 MB, free: 57.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004241/0.3019, allocations: 3.601 MB / 445.2 MB, free: 55.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3019, allocations: 4.5 kB / 445.2 MB, free: 55.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002251/0.3042, allocations: 1.178 MB / 446.3 MB, free: 54.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.893e-05/0.3043, allocations: 121.5 kB / 446.5 MB, free: 54.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.284e-05/0.3044, allocations: 14.34 kB / 446.5 MB, free: 54.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003075/0.3047, allocations: 27.25 kB / 446.5 MB, free: 54.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.3048, allocations: 41.22 kB / 446.5 MB, free: 54.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.504e-05/0.3049, allocations: 16.91 kB / 446.6 MB, free: 54.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001935/0.3051, allocations: 224.6 kB / 446.8 MB, free: 54.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3051, allocations: 0 / 446.8 MB, free: 54.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005912/0.3057, allocations: 187.4 kB / 447 MB, free: 54.36 MB / 366.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: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,line2.myFault.Y.re,line2.myFault.Y.im,line2.myFault.fault) * Number of discrete states: 7 ($whenCondition4,line2.myFault.Y.im,line2.myFault.Y.re,$whenCondition3,$whenCondition2,line2.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002448/0.3082, allocations: 1.757 MB / 448.7 MB, free: 53.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.3097, allocations: 0.984 MB / 449.7 MB, free: 52.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3098, allocations: 0 / 449.7 MB, free: 52.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009877/0.3107, allocations: 0.6787 MB / 450.4 MB, free: 52.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.3112, allocations: 40.61 kB / 450.4 MB, free: 52.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007769/0.3189, allocations: 5.424 MB / 455.8 MB, free: 49.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.3191, allocations: 0.807 MB / 456.6 MB, free: 48.47 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001635/0.3193, allocations: 55.45 kB / 456.7 MB, free: 48.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/0.3195, allocations: 130.9 kB / 456.8 MB, free: 48.38 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3195, allocations: 0 / 456.8 MB, free: 48.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02437/0.3438, allocations: 14.27 MB / 471.1 MB, free: 47.25 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001754/0.3441, allocations: 238.5 kB / 471.3 MB, free: 46.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.151, allocations: 3.938 kB / 471.3 MB, free: 46.99 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)