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-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.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.0008641/0.0008642, allocations: 96.94 kB / 16.06 MB, free: 40 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.0007841/0.000784, allocations: 181.7 kB / 16.96 MB, free: 6.895 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.329/1.329, allocations: 223.3 MB / 241 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.163/0.163, allocations: 8.09 MB / 300.2 MB, free: 2.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002855/0.0002855, allocations: 8 kB / 363.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09376/0.09406, allocations: 52.51 MB / 416.1 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.002184/0.09628, allocations: 2.088 MB / 418.2 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002326/0.09863, allocations: 1.695 MB / 419.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.09877, allocations: 8 kB / 419.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003745/0.09915, allocations: 139.4 kB / 420 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003728/0.09953, allocations: 179 kB / 420.2 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001634/0.1012, allocations: 0.9808 MB / 421.2 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004711/0.1017, allocations: 449.9 kB / 421.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.1019, allocations: 140.4 kB / 421.8 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.1021, allocations: 175.2 kB / 421.9 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002759/0.1023, allocations: 223 kB / 422.2 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.201e-05/0.1024, allocations: 20 kB / 422.2 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003784/0.1028, allocations: 231.8 kB / 422.4 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.112e-05/0.1029, allocations: 71.56 kB / 422.5 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001981/0.1031, allocations: 232.6 kB / 422.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006121/0.1037, allocations: 0.6077 MB / 423.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1037, allocations: 0 / 423.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1037, allocations: 7.938 kB / 423.3 MB, free: 1.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.846e-06/0.1037, allocations: 0 / 423.3 MB, free: 1.055 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.1818/0.2855, allocations: 1.113 MB / 424.4 MB, free: 40.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.2856, allocations: 9.344 kB / 424.4 MB, free: 40.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001597/0.2858, allocations: 67.59 kB / 424.5 MB, free: 40.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003302/0.2861, allocations: 58.77 kB / 424.6 MB, free: 40.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004075/0.2865, allocations: 362.8 kB / 424.9 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.2865, allocations: 30.28 kB / 424.9 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.073e-05/0.2866, allocations: 34.12 kB / 425 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006661/0.2873, allocations: 450.9 kB / 425.4 MB, free: 40.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.2873, allocations: 4.656 kB / 425.4 MB, free: 40.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.921e-05/0.2873, allocations: 15.09 kB / 425.4 MB, free: 40.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.2874, allocations: 9.969 kB / 425.4 MB, free: 40.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006045/0.288, allocations: 449.9 kB / 425.9 MB, free: 40.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001958/0.2899, allocations: 2.001 MB / 427.9 MB, free: 39.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000922/0.2909, allocations: 0.6853 MB / 428.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000329/0.2912, allocations: 303.2 kB / 428.9 MB, free: 39.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.725e-05/0.2913, allocations: 9.047 kB / 428.9 MB, free: 39.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005125/0.2918, allocations: 479.5 kB / 429.3 MB, free: 39.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.154e-06/0.2918, allocations: 3.938 kB / 429.3 MB, free: 39.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.005443/0.2973, allocations: 1.784 MB / 431.1 MB, free: 38.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.268e-05/0.2973, allocations: 196.5 kB / 431.3 MB, free: 38.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002861/0.2976, allocations: 307 kB / 431.6 MB, free: 38.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.725e-05/0.2977, allocations: 41.98 kB / 431.7 MB, free: 38.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.514e-05/0.2978, allocations: 175.9 kB / 431.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.749e-05/0.2979, allocations: 158.8 kB / 432 MB, free: 38.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.837e-05/0.298, allocations: 61.3 kB / 432 MB, free: 38.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.661e-05/0.298, allocations: 348.3 kB / 432.4 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003377/0.2984, allocations: 272.5 kB / 432.7 MB, free: 38.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000356/0.2987, allocations: 341.7 kB / 433 MB, free: 38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006845/0.3056, allocations: 2.109 MB / 435.1 MB, free: 37.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.3056, allocations: 9.344 kB / 435.1 MB, free: 37.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002421/0.308, allocations: 1.183 MB / 436.3 MB, free: 37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/0.3081, allocations: 35.89 kB / 436.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.3081, allocations: 3.281 kB / 436.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002134/0.3102, allocations: 0.5258 MB / 436.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002903/0.3105, allocations: 77.47 kB / 436.9 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004508/0.3151, allocations: 3.65 MB / 440.6 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004031/0.3155, allocations: 51.41 kB / 440.6 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.249e-05/0.3155, allocations: 24.38 kB / 440.7 MB, free: 34.21 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.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real line2.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: 6 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.line2.myFault.fault,line2.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.line2.myFault.Y.re,$PRE.line2.myFault.Y.im,line2.myFault.Y.im,line2.myFault.Y.re) * 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0002623/0.3158, allocations: 230.5 kB / 440.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.202e-05/0.3159, allocations: 42.88 kB / 440.9 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002405/0.3183, allocations: 1.135 MB / 442.1 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3183, allocations: 6.062 kB / 442.1 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.3183, allocations: 4 kB / 442.1 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3183, allocations: 3.422 kB / 442.1 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002892/0.3212, allocations: 1.826 MB / 443.9 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.3212, allocations: 3.938 kB / 443.9 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.3214, allocations: 55.81 kB / 444 MB, free: 32.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002055/0.3235, allocations: 0.5007 MB / 444.5 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.794e-05/0.3235, allocations: 11.12 kB / 444.5 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004398/0.3279, allocations: 3.597 MB / 448.1 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3279, allocations: 3.938 kB / 448.1 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002319/0.3303, allocations: 1.189 MB / 449.3 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.391e-05/0.3304, allocations: 125.1 kB / 449.4 MB, free: 29.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.32e-05/0.3304, allocations: 14.5 kB / 449.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/0.3308, allocations: 24.08 kB / 449.4 MB, free: 29.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.3309, allocations: 40.45 kB / 449.5 MB, free: 29.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/0.3309, allocations: 27.11 kB / 449.5 MB, free: 29.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001941/0.3311, allocations: 218.9 kB / 449.7 MB, free: 28.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3311, allocations: 4 kB / 449.7 MB, free: 28.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00063/0.3318, allocations: 184.8 kB / 449.9 MB, free: 28.87 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00255/0.3343, allocations: 1.753 MB / 451.6 MB, free: 27.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001704/0.336, allocations: 0.9829 MB / 452.6 MB, free: 27.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.3361, allocations: 256 / 452.6 MB, free: 27.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.3371, allocations: 0.6839 MB / 453.3 MB, free: 26.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004679/0.3376, allocations: 40.78 kB / 453.3 MB, free: 26.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008348/0.346, allocations: 5.443 MB / 458.8 MB, free: 23.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.3464, allocations: 0.8162 MB / 459.6 MB, free: 22.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000198/0.3466, allocations: 52.53 kB / 459.6 MB, free: 22.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.3467, allocations: 127.6 kB / 459.8 MB, free: 22.76 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3468, allocations: 0 / 459.8 MB, free: 22.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03066/0.3774, allocations: 13.96 MB / 473.7 MB, free: 21.4 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001553/0.3776, allocations: 235.3 kB / 474 MB, free: 21.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.904/2.282, allocations: 0 / 474 MB, free: 21.14 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/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)