Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.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.OneSourceOneLigneWithFault,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceOneLigneWithFault,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault",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.006937/0.006937, allocations: 93.33 kB / 15.91 MB, free: 6.277 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.001643/0.001643, allocations: 197.4 kB / 16.84 MB, free: 6.191 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.289/1.289, allocations: 222.9 MB / 240.5 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1424/0.1424, allocations: 8.086 MB / 298.7 MB, free: 2.129 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 59.89 kB / 361.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1109, allocations: 51.52 MB / 412.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.003038/0.114, allocations: 1.952 MB / 414.6 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002118/0.1161, allocations: 1.59 MB / 416.2 MB, free: 6.516 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.1163, allocations: 11.94 kB / 416.2 MB, free: 6.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003947/0.1167, allocations: 123.5 kB / 416.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003842/0.1171, allocations: 135.3 kB / 416.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001466/0.1186, allocations: 0.833 MB / 417.3 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000411/0.119, allocations: 326.4 kB / 417.6 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.1192, allocations: 115.1 kB / 417.7 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001444/0.1194, allocations: 127.5 kB / 417.8 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002374/0.1196, allocations: 175.3 kB / 418 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.752e-05/0.1197, allocations: 20 kB / 418 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003585/0.1201, allocations: 203.8 kB / 418.2 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.488e-05/0.1201, allocations: 59.69 kB / 418.3 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001539/0.1203, allocations: 159.2 kB / 418.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005552/0.1208, allocations: 0.5027 MB / 419 MB, free: 3.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.1209, allocations: 0 / 419 MB, free: 3.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.1209, allocations: 3.938 kB / 419 MB, free: 3.738 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.637e-06/0.1209, allocations: 0 / 419 MB, free: 3.738 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002566/0.1235, allocations: 0.9218 MB / 419.9 MB, free: 2.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1235, allocations: 8.031 kB / 419.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.381e-05/0.1236, allocations: 62.72 kB / 420 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002408/0.1238, allocations: 44.55 kB / 420 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003635/0.1242, allocations: 307.8 kB / 420.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.1242, allocations: 16.81 kB / 420.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.814e-05/0.1243, allocations: 28.38 kB / 420.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005365/0.1248, allocations: 339.7 kB / 420.7 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1248, allocations: 7.938 kB / 420.7 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.1249, allocations: 4 kB / 420.7 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.1249, allocations: 8 kB / 420.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004816/0.1254, allocations: 333.6 kB / 421 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.1271, allocations: 1.35 MB / 422.4 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000856/0.1279, allocations: 0.5144 MB / 422.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002828/0.1282, allocations: 208.8 kB / 423.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001018/0.1293, allocations: 0.9012 MB / 424 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004778/0.1298, allocations: 350.6 kB / 424.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.503e-06/0.1298, allocations: 4 kB / 424.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.003014/0.1328, allocations: 1.106 MB / 425.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.1329, allocations: 195.9 kB / 425.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000253/0.1332, allocations: 268.9 kB / 425.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.642e-05/0.1332, allocations: 33.7 kB / 425.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.1333, allocations: 152.4 kB / 426.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.973e-05/0.1334, allocations: 102.5 kB / 426.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.1336, allocations: 90.11 kB / 426.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1337, allocations: 334.8 kB / 426.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002865/0.134, allocations: 188.8 kB / 426.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003278/0.1343, allocations: 264.8 kB / 427 MB, free: 11.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00452/0.1388, allocations: 1.415 MB / 428.4 MB, free: 9.668 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1389, allocations: 0 / 428.4 MB, free: 9.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001743/0.1406, allocations: 0.8311 MB / 429.3 MB, free: 8.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.322e-05/0.1407, allocations: 41.69 kB / 429.3 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1407, allocations: 0 / 429.3 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001315/0.142, allocations: 308.6 kB / 429.6 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002182/0.1422, allocations: 63.91 kB / 429.7 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003597/0.1458, allocations: 2.722 MB / 432.4 MB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.1462, allocations: 39.62 kB / 432.4 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.595e-05/0.1462, allocations: 16 kB / 432.5 MB, free: 5.496 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: lnFault.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean lnFault.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real lnFault.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: 10 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.lnFault.myFault.fault,lnFault.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.lnFault.myFault.Y.re,$PRE.lnFault.myFault.Y.im,lnFault.myFault.Y.im,lnFault.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002623/0.1465, allocations: 208 kB / 432.7 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.715e-05/0.1465, allocations: 27.62 kB / 432.7 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.1482, allocations: 0.7448 MB / 433.4 MB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1482, allocations: 4 kB / 433.4 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.1482, allocations: 3.984 kB / 433.4 MB, free: 4.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1482, allocations: 7.938 kB / 433.4 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004005/0.1486, allocations: 469.1 kB / 433.9 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1486, allocations: 0 / 433.9 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.199e-05/0.1487, allocations: 27.92 kB / 433.9 MB, free: 3.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001211/0.1499, allocations: 312.5 kB / 434.2 MB, free: 3.629 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.341e-05/0.15, allocations: 11.98 kB / 434.3 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003447/0.1534, allocations: 2.698 MB / 436.9 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1534, allocations: 0 / 436.9 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.155, allocations: 0.7375 MB / 437.7 MB, free: 16 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1569/0.3119, allocations: 105.1 kB / 437.8 MB, free: 57.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.3121, allocations: 9.031 kB / 437.8 MB, free: 57.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002381/0.3123, allocations: 13.34 kB / 437.8 MB, free: 57.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.3124, allocations: 30.19 kB / 437.8 MB, free: 57.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-05/0.3125, allocations: 10.12 kB / 437.9 MB, free: 57.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000168/0.3126, allocations: 192.1 kB / 438 MB, free: 57.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3126, allocations: 0 / 438 MB, free: 57.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005322/0.3132, allocations: 131.1 kB / 438.2 MB, free: 57.48 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,lnFault.myFault.Y.re,lnFault.myFault.Y.im,lnFault.myFault.fault) * Number of discrete states: 7 ($whenCondition4,lnFault.myFault.Y.im,lnFault.myFault.Y.re,$whenCondition3,$whenCondition2,lnFault.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001694/0.3149, allocations: 1.31 MB / 439.5 MB, free: 56.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.316, allocations: 0.731 MB / 440.2 MB, free: 56.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.3161, allocations: 3.812 kB / 440.2 MB, free: 56.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007034/0.3168, allocations: 0.5191 MB / 440.7 MB, free: 56.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.317, allocations: 29.58 kB / 440.8 MB, free: 56.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004901/0.3219, allocations: 4.05 MB / 444.8 MB, free: 54.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001407/0.3221, allocations: 0.7701 MB / 445.6 MB, free: 54.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.3222, allocations: 35.86 kB / 445.6 MB, free: 54.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.3223, allocations: 87.44 kB / 445.7 MB, free: 54.19 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3223, allocations: 2.734 kB / 445.7 MB, free: 54.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.017/0.3393, allocations: 8.931 MB / 454.6 MB, free: 53.46 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001342/0.3395, allocations: 219.7 kB / 454.8 MB, free: 53.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.74/2.08, allocations: 2.719 kB / 454.8 MB, free: 53.21 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe 2>&1)