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-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.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.0007435/0.0007435, allocations: 102.6 kB / 16.07 MB, free: 32 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.0007774/0.0007774, allocations: 181.4 kB / 16.97 MB, free: 6.879 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.279/1.279, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1614/0.1614, allocations: 8.075 MB / 300.2 MB, free: 2.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003159/0.000316, allocations: 8 kB / 363.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08675/0.08709, allocations: 52.52 MB / 416.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.001847/0.08899, allocations: 1.571 MB / 417.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002149/0.09116, allocations: 1.571 MB / 419.3 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.09133, allocations: 8 kB / 419.3 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000387/0.09173, allocations: 127.5 kB / 419.4 MB, free: 5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003489/0.09209, allocations: 131.3 kB / 419.5 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.09351, allocations: 0.8212 MB / 420.3 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003416/0.09386, allocations: 326.5 kB / 420.7 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.09406, allocations: 119.1 kB / 420.8 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.09417, allocations: 115.4 kB / 420.9 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.09439, allocations: 163.3 kB / 421 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.09443, allocations: 16 kB / 421.1 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003126/0.09475, allocations: 199.8 kB / 421.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.652e-05/0.0948, allocations: 55.69 kB / 421.3 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.09497, allocations: 177 kB / 421.5 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004922/0.09547, allocations: 0.4909 MB / 422 MB, free: 2.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.09549, allocations: 0 / 422 MB, free: 2.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.0955, allocations: 0 / 422 MB, free: 2.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.09551, allocations: 3.938 kB / 422 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002345/0.09786, allocations: 0.8673 MB / 422.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.0979, allocations: 8.031 kB / 422.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.54e-05/0.09798, allocations: 54.73 kB / 422.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002265/0.09821, allocations: 56.53 kB / 423 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.09853, allocations: 311.6 kB / 423.3 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.09856, allocations: 20.81 kB / 423.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.479e-05/0.09862, allocations: 28.38 kB / 423.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005089/0.09914, allocations: 331.8 kB / 423.6 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.09916, allocations: 3.938 kB / 423.6 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.101e-05/0.09919, allocations: 12 kB / 423.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.09921, allocations: 4 kB / 423.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004603/0.09967, allocations: 325.6 kB / 424 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1618/0.2615, allocations: 1.352 MB / 425.3 MB, free: 40.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007904/0.2623, allocations: 0.5095 MB / 425.8 MB, free: 40.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002452/0.2626, allocations: 207.8 kB / 426 MB, free: 40.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008305/0.2634, allocations: 0.9042 MB / 426.9 MB, free: 39.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000388/0.2638, allocations: 354.1 kB / 427.3 MB, free: 39.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.023e-06/0.2638, allocations: 0 / 427.3 MB, free: 39.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002856/0.2667, allocations: 1.1 MB / 428.4 MB, free: 39.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.144e-05/0.2668, allocations: 200.1 kB / 428.6 MB, free: 39.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/0.267, allocations: 270.9 kB / 428.8 MB, free: 39.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.267, allocations: 39.78 kB / 428.9 MB, free: 39.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.147e-05/0.2671, allocations: 157.6 kB / 429 MB, free: 39.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.409e-05/0.2672, allocations: 97.58 kB / 429.1 MB, free: 39.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.067e-05/0.2673, allocations: 46.83 kB / 429.2 MB, free: 39.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.749e-05/0.2674, allocations: 337.9 kB / 429.5 MB, free: 38.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.2676, allocations: 186.7 kB / 429.7 MB, free: 38.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002607/0.2679, allocations: 266.4 kB / 430 MB, free: 38.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004405/0.2723, allocations: 1.437 MB / 431.4 MB, free: 38.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.2723, allocations: 3.25 kB / 431.4 MB, free: 38.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001496/0.2738, allocations: 0.8181 MB / 432.2 MB, free: 38.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.2739, allocations: 38.8 kB / 432.2 MB, free: 38.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.2739, allocations: 3.938 kB / 432.3 MB, free: 38.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.2751, allocations: 318 kB / 432.6 MB, free: 38.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.2753, allocations: 65.2 kB / 432.6 MB, free: 38.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003004/0.2783, allocations: 2.719 MB / 435.3 MB, free: 36.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/0.2786, allocations: 48.72 kB / 435.4 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.159e-05/0.2787, allocations: 16.81 kB / 435.4 MB, free: 36.45 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.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real lnFault.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: 10 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.lnFault.myFault.fault,lnFault.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.lnFault.myFault.Y.re,$PRE.lnFault.myFault.Y.im,lnFault.myFault.Y.im,lnFault.myFault.Y.re) * 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 (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): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002199/0.2789, allocations: 205.4 kB / 435.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.298e-05/0.2789, allocations: 27.56 kB / 435.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.2804, allocations: 0.7497 MB / 436.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.2804, allocations: 5.578 kB / 436.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2804, allocations: 3.312 kB / 436.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.2805, allocations: 3.375 kB / 436.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.2807, allocations: 483.3 kB / 436.9 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2808, allocations: 0 / 436.9 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.407e-05/0.2808, allocations: 24.28 kB / 436.9 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/0.2819, allocations: 310.2 kB / 437.2 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.282, allocations: 12.12 kB / 437.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002926/0.2849, allocations: 2.701 MB / 439.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2849, allocations: 7.938 kB / 439.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.2862, allocations: 0.7359 MB / 440.7 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.315e-05/0.2863, allocations: 110 kB / 440.8 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.2864, allocations: 14.16 kB / 440.8 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.2866, allocations: 17.89 kB / 440.8 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.412e-05/0.2866, allocations: 24.44 kB / 440.8 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.2867, allocations: 19.88 kB / 440.8 MB, free: 32.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.2868, allocations: 193 kB / 441 MB, free: 32.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2868, allocations: 0 / 441 MB, free: 32.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003921/0.2872, allocations: 133.1 kB / 441.2 MB, free: 32.72 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 (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): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001579/0.2888, allocations: 1.304 MB / 442.5 MB, free: 31.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.2899, allocations: 0.7317 MB / 443.2 MB, free: 31.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2899, allocations: 0 / 443.2 MB, free: 31.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006929/0.2906, allocations: 0.5203 MB / 443.7 MB, free: 31.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002285/0.2908, allocations: 34.19 kB / 443.7 MB, free: 31.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00487/0.2957, allocations: 4.075 MB / 447.8 MB, free: 28.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001568/0.2959, allocations: 0.7656 MB / 448.6 MB, free: 27.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.296, allocations: 39.94 kB / 448.6 MB, free: 27.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.2961, allocations: 84.97 kB / 448.7 MB, free: 27.67 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2961, allocations: 0 / 448.7 MB, free: 27.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01698/0.3131, allocations: 8.691 MB / 457.4 MB, free: 27.02 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001226/0.3132, allocations: 218.7 kB / 457.6 MB, free: 26.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/2.097, allocations: 0 / 457.6 MB, free: 26.76 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/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)