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.0008643/0.0008641, allocations: 101.2 kB / 15.73 MB, free: 436 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.0008633/0.0008634, allocations: 177.8 kB / 16.61 MB, free: 5.719 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.234/1.234, allocations: 223.2 MB / 240.5 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1454/0.1454, allocations: 8.091 MB / 299.7 MB, free: 2.949 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002718/0.0002718, allocations: 8 kB / 362.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08394/0.08422, allocations: 52.5 MB / 415.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.001926/0.08618, allocations: 1.796 MB / 417.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.088, allocations: 1.641 MB / 418.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.248e-05/0.0881, allocations: 8 kB / 418.8 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002583/0.08837, allocations: 107.4 kB / 418.9 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003201/0.0887, allocations: 199.4 kB / 419.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001351/0.09006, allocations: 0.833 MB / 419.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003738/0.09044, allocations: 319.3 kB / 420.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.09065, allocations: 139.3 kB / 420.4 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.0908, allocations: 155.5 kB / 420.5 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.09107, allocations: 219.1 kB / 420.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.855e-05/0.09112, allocations: 20 kB / 420.8 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002981/0.09142, allocations: 199.8 kB / 421 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.688e-05/0.09149, allocations: 67.73 kB / 421 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.644e-05/0.09158, allocations: 105.5 kB / 421.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004395/0.09203, allocations: 467.1 kB / 421.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.09204, allocations: 0 / 421.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.09205, allocations: 0 / 421.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.09206, allocations: 0 / 421.6 MB, free: 2.395 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.00329/0.09535, allocations: 1.113 MB / 422.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.09539, allocations: 8.031 kB / 422.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.569e-05/0.09548, allocations: 74.53 kB / 422.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002415/0.09573, allocations: 63.38 kB / 422.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004002/0.09613, allocations: 354.2 kB / 423.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.09617, allocations: 24.66 kB / 423.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.795e-05/0.09623, allocations: 39.94 kB / 423.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006432/0.09688, allocations: 449.9 kB / 423.7 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.0969, allocations: 0 / 423.7 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.076e-05/0.09695, allocations: 16 kB / 423.7 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.09696, allocations: 11.89 kB / 423.7 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1498/0.2468, allocations: 448.7 kB / 424.2 MB, free: 41.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00202/0.2488, allocations: 2.003 MB / 426.2 MB, free: 40.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008851/0.2497, allocations: 0.6803 MB / 426.8 MB, free: 39.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.536e-05/0.2498, allocations: 20.42 kB / 426.9 MB, free: 39.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004682/0.2503, allocations: 461 kB / 427.3 MB, free: 39.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.984e-06/0.2503, allocations: 0 / 427.3 MB, free: 39.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005092/0.2554, allocations: 1.851 MB / 429.2 MB, free: 39.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.2555, allocations: 199.9 kB / 429.4 MB, free: 39.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.2557, allocations: 301.2 kB / 429.7 MB, free: 39.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.277e-05/0.2558, allocations: 39.44 kB / 429.7 MB, free: 39.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.962e-05/0.2559, allocations: 174.3 kB / 429.9 MB, free: 38.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.378e-05/0.256, allocations: 163.6 kB / 430 MB, free: 38.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.024e-05/0.256, allocations: 9.781 kB / 430 MB, free: 38.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.21e-05/0.2561, allocations: 344.5 kB / 430.4 MB, free: 38.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003449/0.2564, allocations: 274.7 kB / 430.6 MB, free: 38.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004072/0.2568, allocations: 342.2 kB / 431 MB, free: 38.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000365/0.2572, allocations: 339.2 kB / 431.3 MB, free: 38.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.2572, allocations: 0 / 431.3 MB, free: 38.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002283/0.2595, allocations: 1.165 MB / 432.5 MB, free: 38.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.2595, allocations: 36 kB / 432.5 MB, free: 38.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.2595, allocations: 4 kB / 432.5 MB, free: 38.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002093/0.2616, allocations: 0.517 MB / 433 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002683/0.2619, allocations: 78.88 kB / 433.1 MB, free: 38.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004241/0.2662, allocations: 3.781 MB / 436.9 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003391/0.2665, allocations: 48.66 kB / 436.9 MB, free: 35.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.933e-05/0.2666, allocations: 23.16 kB / 437 MB, free: 35.51 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.0002021/0.2668, allocations: 216.8 kB / 437.2 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.729e-05/0.2668, allocations: 43.36 kB / 437.2 MB, free: 35.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002236/0.2691, allocations: 1.141 MB / 438.3 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.2691, allocations: 6.625 kB / 438.4 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.2691, allocations: 3.938 kB / 438.4 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.2691, allocations: 7.328 kB / 438.4 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002598/0.2717, allocations: 1.827 MB / 440.2 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.2717, allocations: 0 / 440.2 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001482/0.2719, allocations: 50.23 kB / 440.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001965/0.2739, allocations: 0.5045 MB / 440.7 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.432e-05/0.2739, allocations: 14.31 kB / 440.8 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004095/0.278, allocations: 3.73 MB / 444.5 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.278, allocations: 3.094 kB / 444.5 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002132/0.2802, allocations: 1.178 MB / 445.7 MB, free: 30.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.772e-05/0.2802, allocations: 126.8 kB / 445.8 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.569e-05/0.2803, allocations: 11.38 kB / 445.8 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000319/0.2806, allocations: 26.83 kB / 445.8 MB, free: 30.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.615e-05/0.2807, allocations: 52.64 kB / 445.9 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.2808, allocations: 16.88 kB / 445.9 MB, free: 30.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001678/0.281, allocations: 224.5 kB / 446.1 MB, free: 30.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.281, allocations: 0 / 446.1 MB, free: 30.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005213/0.2815, allocations: 185.6 kB / 446.3 MB, free: 30.1 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.002352/0.2839, allocations: 1.756 MB / 448.1 MB, free: 28.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001442/0.2853, allocations: 0.9824 MB / 449 MB, free: 28.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2853, allocations: 4.062 kB / 449 MB, free: 28.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000947/0.2863, allocations: 0.6707 MB / 449.7 MB, free: 28.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/0.2865, allocations: 33.64 kB / 449.7 MB, free: 27.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.2879, allocations: 1.992 MB / 451.7 MB, free: 26.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000179/0.2881, allocations: 0.8116 MB / 452.5 MB, free: 25.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001492/0.2883, allocations: 52.52 kB / 452.6 MB, free: 25.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.2884, allocations: 126.3 kB / 452.7 MB, free: 25.59 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2884, allocations: 4 kB / 452.7 MB, free: 25.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.313, allocations: 13.62 MB / 466.3 MB, free: 24.62 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001198/0.3132, allocations: 217.1 kB / 466.6 MB, free: 24.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.735/2.048, allocations: 7.766 kB / 466.6 MB, free: 24.37 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: