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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.0007262/0.0007262, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000798/0.0007981, allocations: 174.8 kB / 16.63 MB, free: 6.887 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.241/1.241, allocations: 223.3 MB / 240.7 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1583/0.1583, allocations: 8.087 MB / 299.8 MB, free: 2.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002973/0.0002974, allocations: 12 kB / 363 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08406/0.08438, allocations: 52.52 MB / 415.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.001643/0.08606, allocations: 1.483 MB / 417 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.08789, allocations: 1.509 MB / 418.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.08802, allocations: 7.938 kB / 418.5 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002675/0.0883, allocations: 95.58 kB / 418.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000274/0.08858, allocations: 127.3 kB / 418.7 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.08977, allocations: 0.6931 MB / 419.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003634/0.09014, allocations: 310.5 kB / 419.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.09033, allocations: 106.1 kB / 419.8 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.09046, allocations: 111.6 kB / 419.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.0907, allocations: 163.3 kB / 420.1 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.84e-05/0.09075, allocations: 16 kB / 420.1 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003457/0.0911, allocations: 191.8 kB / 420.3 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.523e-05/0.09115, allocations: 47.78 kB / 420.3 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.051e-05/0.09124, allocations: 85.45 kB / 420.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003921/0.09164, allocations: 383.3 kB / 420.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.09165, allocations: 0 / 420.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.09166, allocations: 0 / 420.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.09167, allocations: 0 / 420.8 MB, free: 3.305 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.002142/0.09382, allocations: 0.8749 MB / 421.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.09386, allocations: 12.03 kB / 421.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.874e-05/0.09394, allocations: 54.55 kB / 421.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002091/0.09415, allocations: 51.56 kB / 421.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.09448, allocations: 298.6 kB / 422 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.09451, allocations: 24.38 kB / 422.1 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.09455, allocations: 24 kB / 422.1 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005086/0.09507, allocations: 331.2 kB / 422.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.09509, allocations: 0 / 422.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.09512, allocations: 7.984 kB / 422.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.09514, allocations: 12 kB / 422.4 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004382/0.09558, allocations: 325.6 kB / 422.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1541/0.2497, allocations: 1.363 MB / 424.1 MB, free: 40.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006867/0.2504, allocations: 0.5018 MB / 424.6 MB, free: 40.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00023/0.2506, allocations: 208.1 kB / 424.8 MB, free: 40.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008287/0.2515, allocations: 0.8931 MB / 425.7 MB, free: 39.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003831/0.2519, allocations: 361.3 kB / 426.1 MB, free: 39.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.775e-06/0.2519, allocations: 0 / 426.1 MB, free: 39.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002419/0.2543, allocations: 1.088 MB / 427.2 MB, free: 39.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.2544, allocations: 190.9 kB / 427.3 MB, free: 39.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.2546, allocations: 274.4 kB / 427.6 MB, free: 39.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.911e-05/0.2546, allocations: 34.98 kB / 427.6 MB, free: 39.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.804e-05/0.2547, allocations: 155.4 kB / 427.8 MB, free: 39.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.767e-05/0.2547, allocations: 105.3 kB / 427.9 MB, free: 39.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.383e-05/0.2548, allocations: 9.656 kB / 427.9 MB, free: 39.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.863e-05/0.2548, allocations: 341.5 kB / 428.2 MB, free: 38.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.2551, allocations: 184.2 kB / 428.4 MB, free: 38.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002449/0.2553, allocations: 271.4 kB / 428.7 MB, free: 38.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002738/0.2556, allocations: 245.1 kB / 428.9 MB, free: 38.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2556, allocations: 0.5625 kB / 428.9 MB, free: 38.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001345/0.2569, allocations: 0.8212 MB / 429.7 MB, free: 38.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.257, allocations: 38.08 kB / 429.8 MB, free: 38.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.257, allocations: 3.812 kB / 429.8 MB, free: 38.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/0.2581, allocations: 311.4 kB / 430.1 MB, free: 38.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.2583, allocations: 62.17 kB / 430.2 MB, free: 38.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002751/0.261, allocations: 2.722 MB / 432.9 MB, free: 37.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.2613, allocations: 38.52 kB / 432.9 MB, free: 37.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.2613, allocations: 20.83 kB / 432.9 MB, free: 37.13 MB / 350.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.im:DISCRETE(start = 0.0 fixed = true ) "Imaginary part of complex number" type: Real lnFault.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real 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 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.lnFault.myFault.fault,lnFault.myFault.fault,$PRE.lnFault.myFault.Y.re,lnFault.myFault.Y.re,$PRE.lnFault.myFault.Y.im,lnFault.myFault.Y.im) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002066/0.2615, allocations: 212.2 kB / 433.1 MB, free: 36.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/0.2616, allocations: 28.66 kB / 433.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.2629, allocations: 0.7411 MB / 433.9 MB, free: 36.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.2629, allocations: 6.812 kB / 433.9 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2629, allocations: 2.875 kB / 433.9 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.2629, allocations: 4.562 kB / 433.9 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002987/0.2632, allocations: 479.3 kB / 434.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.2632, allocations: 0 / 434.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.389e-05/0.2633, allocations: 29.95 kB / 434.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009628/0.2643, allocations: 301.2 kB / 434.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.2643, allocations: 8.156 kB / 434.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002545/0.2669, allocations: 2.702 MB / 437.4 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2669, allocations: 3.219 kB / 437.4 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.2681, allocations: 0.7388 MB / 438.2 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-05/0.2681, allocations: 110.5 kB / 438.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.752e-05/0.2682, allocations: 11.12 kB / 438.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.2684, allocations: 14.17 kB / 438.3 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.304e-05/0.2684, allocations: 28.58 kB / 438.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-05/0.2685, allocations: 19.22 kB / 438.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001229/0.2686, allocations: 186.5 kB / 438.5 MB, free: 33.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2686, allocations: 0 / 438.5 MB, free: 33.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003871/0.269, allocations: 129.5 kB / 438.7 MB, free: 33.45 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001395/0.2704, allocations: 1.298 MB / 440 MB, free: 32.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009987/0.2714, allocations: 0.7324 MB / 440.7 MB, free: 32.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2714, allocations: 0 / 440.7 MB, free: 32.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006368/0.2721, allocations: 0.5258 MB / 441.2 MB, free: 31.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.2723, allocations: 22.12 kB / 441.2 MB, free: 31.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002805/0.2751, allocations: 2.256 MB / 443.5 MB, free: 30.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001402/0.2752, allocations: 0.7745 MB / 444.3 MB, free: 29.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001011/0.2754, allocations: 34.03 kB / 444.3 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.876e-05/0.2755, allocations: 82.91 kB / 444.4 MB, free: 29.71 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2755, allocations: 0 / 444.4 MB, free: 29.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01836/0.2938, allocations: 8.648 MB / 453 MB, free: 29.07 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/0.2941, allocations: 204.8 kB / 453.2 MB, free: 28.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/1.993, allocations: 4 kB / 453.2 MB, free: 28.82 MB / 350.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/linux/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) Environment - environmentSimulation: