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/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.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.0007831/0.0007833, 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.0008305/0.0008305, allocations: 174.7 kB / 16.63 MB, free: 6.891 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.254/1.254, allocations: 223.3 MB / 240.6 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1555/0.1555, allocations: 8.083 MB / 299.8 MB, free: 2.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002895/0.0002899, allocations: 8 kB / 362.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08533/0.08564, allocations: 52.52 MB / 415.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.002086/0.08776, allocations: 1.946 MB / 417.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002117/0.0899, allocations: 1.626 MB / 419 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002229/0.09015, allocations: 8 kB / 419 MB, free: 5.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003491/0.09051, allocations: 107.4 kB / 419.2 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004341/0.09095, allocations: 178.9 kB / 419.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0015/0.09246, allocations: 0.8214 MB / 420.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000551/0.09302, allocations: 425.9 kB / 420.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002227/0.09325, allocations: 135.3 kB / 420.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/0.09346, allocations: 159.3 kB / 420.8 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003198/0.09379, allocations: 223.1 kB / 421.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.538e-05/0.09386, allocations: 23.94 kB / 421.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003937/0.09426, allocations: 223.8 kB / 421.3 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.655e-05/0.09433, allocations: 71.67 kB / 421.4 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.09445, allocations: 105.5 kB / 421.5 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004861/0.09494, allocations: 475 kB / 421.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.09495, allocations: 0 / 421.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.09496, allocations: 4 kB / 422 MB, free: 2.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.09497, allocations: 0 / 422 MB, free: 2.105 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.003058/0.09804, allocations: 1.117 MB / 423.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.09808, allocations: 8.031 kB / 423.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.712e-05/0.09817, allocations: 70.55 kB / 423.1 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002443/0.09843, allocations: 67.36 kB / 423.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004048/0.09884, allocations: 346.3 kB / 423.5 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.09887, allocations: 28.66 kB / 423.6 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.018e-05/0.09894, allocations: 36 kB / 423.6 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1589/0.2579, allocations: 447.8 kB / 424 MB, free: 40.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.2579, allocations: 0.7969 kB / 424 MB, free: 40.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.157e-05/0.258, allocations: 18.84 kB / 424.1 MB, free: 40.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.258, allocations: 6.438 kB / 424.1 MB, free: 40.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006079/0.2586, allocations: 453.2 kB / 424.5 MB, free: 40.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.2605, allocations: 1.992 MB / 426.5 MB, free: 39.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008563/0.2614, allocations: 0.6834 MB / 427.2 MB, free: 39.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000317/0.2617, allocations: 306.5 kB / 427.5 MB, free: 39.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.017e-05/0.2618, allocations: 12.23 kB / 427.5 MB, free: 39.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004688/0.2622, allocations: 466.8 kB / 428 MB, free: 39.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.214e-06/0.2622, allocations: 0 / 428 MB, free: 39.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.00452/0.2668, allocations: 1.78 MB / 429.7 MB, free: 39.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.2668, allocations: 196.7 kB / 429.9 MB, free: 38.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002807/0.2671, allocations: 300.8 kB / 430.2 MB, free: 38.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.391e-05/0.2672, allocations: 45.64 kB / 430.3 MB, free: 38.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9e-05/0.2673, allocations: 169.2 kB / 430.4 MB, free: 38.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.407e-05/0.2674, allocations: 162.5 kB / 430.6 MB, free: 38.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.463e-05/0.2674, allocations: 14.12 kB / 430.6 MB, free: 38.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.974e-05/0.2675, allocations: 348.9 kB / 430.9 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003444/0.2678, allocations: 270.3 kB / 431.2 MB, free: 38.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003418/0.2682, allocations: 352.8 kB / 431.6 MB, free: 38.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000404/0.2686, allocations: 330.2 kB / 431.9 MB, free: 38.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2686, allocations: 0 / 431.9 MB, free: 38.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002152/0.2708, allocations: 1.168 MB / 433 MB, free: 37.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.2708, allocations: 39.55 kB / 433.1 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.2708, allocations: 0.6875 kB / 433.1 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001827/0.2727, allocations: 0.5191 MB / 433.6 MB, free: 37.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002589/0.2729, allocations: 80.34 kB / 433.7 MB, free: 37.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004216/0.2771, allocations: 3.639 MB / 437.3 MB, free: 35.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.2775, allocations: 51.47 kB / 437.4 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.2775, allocations: 25.72 kB / 437.4 MB, free: 35.09 MB / 350.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.im:DISCRETE(start = 0.0 fixed = true ) "Imaginary part of complex number" type: Real line2.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: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.line2.myFault.fault,line2.myFault.fault,$PRE.line2.myFault.Y.re,line2.myFault.Y.re,$PRE.line2.myFault.Y.im,line2.myFault.Y.im) * 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 (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: 0 * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0002158/0.2777, allocations: 222.7 kB / 437.6 MB, free: 34.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.384e-05/0.2778, allocations: 38.56 kB / 437.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002116/0.2799, allocations: 1.135 MB / 438.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.2799, allocations: 6.344 kB / 438.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.2799, allocations: 0 / 438.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.28, allocations: 3.469 kB / 438.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002439/0.2824, allocations: 1.824 MB / 440.6 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2824, allocations: 0 / 440.6 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.2826, allocations: 56.03 kB / 440.7 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001712/0.2843, allocations: 0.504 MB / 441.2 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.2843, allocations: 18.3 kB / 441.2 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003795/0.2881, allocations: 3.603 MB / 444.8 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2881, allocations: 0 / 444.8 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00192/0.2901, allocations: 1.182 MB / 446 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.611e-05/0.2901, allocations: 125 kB / 446.1 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.122e-05/0.2902, allocations: 14.34 kB / 446.1 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.2905, allocations: 34.23 kB / 446.2 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.748e-05/0.2906, allocations: 41.89 kB / 446.2 MB, free: 29.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.46e-05/0.2906, allocations: 16.81 kB / 446.2 MB, free: 29.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001768/0.2908, allocations: 217.9 kB / 446.4 MB, free: 29.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2908, allocations: 0 / 446.4 MB, free: 29.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005668/0.2914, allocations: 183.3 kB / 446.6 MB, free: 29.75 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,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 (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: 0 * Non-linear torn systems: 1 {3 15} Notification: Performance of Backend phase and start with SimCode phase: time 0.002188/0.2936, allocations: 1.757 MB / 448.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001424/0.295, allocations: 0.9816 MB / 449.3 MB, free: 28.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2951, allocations: 0 / 449.3 MB, free: 28.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008985/0.296, allocations: 0.6788 MB / 450 MB, free: 27.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003626/0.2963, allocations: 47.41 kB / 450.1 MB, free: 27.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004171/0.3005, allocations: 3.104 MB / 453.2 MB, free: 25.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001802/0.3007, allocations: 0.8048 MB / 454 MB, free: 25.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001532/0.3009, allocations: 50.33 kB / 454 MB, free: 25.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001482/0.301, allocations: 124.7 kB / 454.1 MB, free: 25.19 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.301, allocations: 6.844 kB / 454.2 MB, free: 25.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02753/0.3286, allocations: 13.81 MB / 468 MB, free: 24.22 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001232/0.3287, allocations: 222.3 kB / 468.2 MB, free: 23.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/2.122, allocations: 0 / 468.2 MB, free: 23.97 MB / 350.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/linux/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) Environment - environmentSimulation: