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.0008851/0.0008852, allocations: 96.75 kB / 15.73 MB, free: 440 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.000931/0.0009311, allocations: 177.5 kB / 16.61 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.278/1.278, allocations: 223.2 MB / 240.5 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1408/0.1408, allocations: 8.09 MB / 299.7 MB, free: 2.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003123/0.0003123, allocations: 12 kB / 362.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08932/0.08965, allocations: 52.51 MB / 415.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.001548/0.09123, allocations: 1.372 MB / 416.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.09278, allocations: 1.513 MB / 418.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.771e-05/0.09287, allocations: 8 kB / 418.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002463/0.09312, allocations: 99.44 kB / 418.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.09338, allocations: 151.5 kB / 418.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.09453, allocations: 0.6891 MB / 419.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002914/0.09483, allocations: 231.5 kB / 419.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.09501, allocations: 102.1 kB / 419.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.845e-05/0.09511, allocations: 107.6 kB / 419.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.09532, allocations: 159.4 kB / 419.8 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.176e-05/0.09536, allocations: 16 kB / 419.8 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002719/0.09564, allocations: 175.8 kB / 420 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.724e-05/0.0957, allocations: 47.81 kB / 420 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.571e-05/0.09578, allocations: 81.58 kB / 420.1 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003622/0.09615, allocations: 371.3 kB / 420.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.09616, allocations: 0 / 420.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09616, allocations: 0 / 420.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.09618, allocations: 4 kB / 420.5 MB, free: 3.535 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.002297/0.09848, allocations: 0.8711 MB / 421.3 MB, free: 2.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.09852, allocations: 16.03 kB / 421.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.279e-05/0.09859, allocations: 58.48 kB / 421.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002181/0.09882, allocations: 51.5 kB / 421.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003301/0.09916, allocations: 298.6 kB / 421.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.09918, allocations: 20.44 kB / 421.8 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.298e-05/0.09923, allocations: 24 kB / 421.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004842/0.09972, allocations: 331.2 kB / 422.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.09974, allocations: 0 / 422.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.09977, allocations: 4 kB / 422.1 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.09979, allocations: 11.95 kB / 422.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.1002, allocations: 333.6 kB / 422.4 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1519/0.2522, allocations: 1.362 MB / 423.8 MB, free: 40.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008695/0.2531, allocations: 0.5042 MB / 424.3 MB, free: 40.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.385e-05/0.2532, allocations: 2.719 kB / 424.3 MB, free: 40.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004876/0.2537, allocations: 401.8 kB / 424.7 MB, free: 40.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.074e-06/0.2537, allocations: 1.281 kB / 424.7 MB, free: 40.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003073/0.2568, allocations: 1.233 MB / 425.9 MB, free: 40.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.2569, allocations: 246.4 kB / 426.2 MB, free: 39.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/0.2571, allocations: 256.5 kB / 426.4 MB, free: 39.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.282e-05/0.2571, allocations: 38.2 kB / 426.5 MB, free: 39.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.85e-05/0.2572, allocations: 151.9 kB / 426.6 MB, free: 39.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.557e-05/0.2573, allocations: 115.3 kB / 426.7 MB, free: 39.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.473e-05/0.2573, allocations: 10.06 kB / 426.7 MB, free: 39.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.906e-05/0.2574, allocations: 339 kB / 427.1 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.2577, allocations: 183.8 kB / 427.3 MB, free: 39.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002692/0.2579, allocations: 279.2 kB / 427.5 MB, free: 39.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.2582, allocations: 251.9 kB / 427.8 MB, free: 39.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.2583, allocations: 0 / 427.8 MB, free: 39.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00157/0.2598, allocations: 0.8359 MB / 428.6 MB, free: 39.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/0.2599, allocations: 32.3 kB / 428.6 MB, free: 39.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.2599, allocations: 3.312 kB / 428.6 MB, free: 39.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001201/0.2611, allocations: 313.7 kB / 428.9 MB, free: 39.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.2614, allocations: 75.14 kB / 429 MB, free: 39.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003133/0.2645, allocations: 2.793 MB / 431.8 MB, free: 37.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003056/0.2648, allocations: 42.39 kB / 431.9 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-05/0.2649, allocations: 16.47 kB / 431.9 MB, free: 37.78 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 (42): * Single equations (assignments): 40 * 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.0002453/0.2651, allocations: 211.9 kB / 432.1 MB, free: 37.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.481e-05/0.2652, allocations: 27.94 kB / 432.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001525/0.2667, allocations: 0.7777 MB / 432.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.2667, allocations: 2.875 kB / 432.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2667, allocations: 7.031 kB / 432.9 MB, free: 37.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.2667, allocations: 0 / 432.9 MB, free: 37.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001793/0.2685, allocations: 1.313 MB / 434.2 MB, free: 36.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.2686, allocations: 0 / 434.2 MB, free: 36.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.2687, allocations: 26.61 kB / 434.2 MB, free: 36.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001144/0.2698, allocations: 310.6 kB / 434.5 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.98e-05/0.2699, allocations: 10.25 kB / 434.5 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002805/0.2727, allocations: 2.803 MB / 437.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2727, allocations: 0 / 437.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.274, allocations: 0.8117 MB / 438.2 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.905e-05/0.2741, allocations: 113.1 kB / 438.3 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.318e-05/0.2742, allocations: 13.84 kB / 438.3 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.2744, allocations: 11.58 kB / 438.3 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.492e-05/0.2745, allocations: 34.7 kB / 438.3 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.774e-05/0.2745, allocations: 17.95 kB / 438.3 MB, free: 33.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001304/0.2746, allocations: 187.6 kB / 438.5 MB, free: 33.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2747, allocations: 0 / 438.5 MB, free: 33.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004569/0.2751, allocations: 127.4 kB / 438.7 MB, free: 33.79 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 (20): * Single equations (assignments): 18 * 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.001529/0.2767, allocations: 1.381 MB / 440 MB, free: 32.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.2777, allocations: 0.7523 MB / 440.8 MB, free: 32.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2777, allocations: 0 / 440.8 MB, free: 32.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006942/0.2784, allocations: 0.5284 MB / 441.3 MB, free: 32.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001865/0.2786, allocations: 17.81 kB / 441.3 MB, free: 32.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.2798, allocations: 2.331 MB / 443.7 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.28, allocations: 0.776 MB / 444.4 MB, free: 29.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.2801, allocations: 39.52 kB / 444.5 MB, free: 29.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.2802, allocations: 93.5 kB / 444.6 MB, free: 29.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2802, allocations: 0 / 444.6 MB, free: 29.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01665/0.2969, allocations: 8.68 MB / 453.2 MB, free: 28.5 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001132/0.297, allocations: 187.9 kB / 453.4 MB, free: 28.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.638/1.935, allocations: 0 / 453.4 MB, free: 28.26 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: