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.001184/0.001184, allocations: 108.5 kB / 16.45 MB, free: 6.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 186.9 kB / 17.38 MB, free: 5.691 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.269/1.269, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04303/0.04303, allocations: 8.104 MB / 299.4 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 59.91 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08548/0.0866, allocations: 51.52 MB / 465.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.002638/0.08927, allocations: 1.913 MB / 467.4 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001742/0.09103, allocations: 1.602 MB / 469 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.265e-05/0.09113, allocations: 4 kB / 469 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003338/0.09149, allocations: 135.2 kB / 469.1 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003035/0.09181, allocations: 159 kB / 469.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001372/0.09319, allocations: 0.8597 MB / 470.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003818/0.09358, allocations: 350.4 kB / 470.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.09378, allocations: 130.6 kB / 470.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.0939, allocations: 143.4 kB / 470.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002284/0.09414, allocations: 187.3 kB / 470.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.142e-05/0.09419, allocations: 36 kB / 471 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003059/0.0945, allocations: 227.8 kB / 471.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.264e-05/0.09456, allocations: 67.7 kB / 471.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.0947, allocations: 163.3 kB / 471.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004988/0.09521, allocations: 0.5177 MB / 471.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.09522, allocations: 4 kB / 471.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.09523, allocations: 0 / 471.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.09524, allocations: 0 / 471.9 MB, free: 12.18 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.002314/0.09756, allocations: 0.9179 MB / 472.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.0976, allocations: 15.89 kB / 472.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.731e-05/0.09766, allocations: 54.73 kB / 472.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002088/0.09788, allocations: 48.55 kB / 473 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003113/0.0982, allocations: 315.7 kB / 473.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.09823, allocations: 20.81 kB / 473.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.069e-05/0.09827, allocations: 24.38 kB / 473.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00047/0.09875, allocations: 331.7 kB / 473.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.09877, allocations: 3.938 kB / 473.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.707e-05/0.0988, allocations: 12 kB / 473.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.09882, allocations: 4 kB / 473.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004428/0.09926, allocations: 325.6 kB / 474 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/0.1008, allocations: 1.346 MB / 475.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007717/0.1016, allocations: 0.5247 MB / 475.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002608/0.1018, allocations: 208.8 kB / 476.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008966/0.1028, allocations: 0.8935 MB / 477 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004565/0.1032, allocations: 358 kB / 477.3 MB, free: 6.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.673e-06/0.1032, allocations: 4 kB / 477.3 MB, free: 6.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002877/0.1061, allocations: 1.099 MB / 478.4 MB, free: 5.285 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.587e-05/0.1062, allocations: 195.9 kB / 478.6 MB, free: 5.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002267/0.1064, allocations: 268.8 kB / 478.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.1065, allocations: 29.7 kB / 478.9 MB, free: 4.742 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.416e-05/0.1066, allocations: 156.4 kB / 479.1 MB, free: 4.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.477e-05/0.1067, allocations: 106.5 kB / 479.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.1068, allocations: 86.11 kB / 479.2 MB, free: 4.391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.854e-05/0.1069, allocations: 334.8 kB / 479.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002663/0.1072, allocations: 188.8 kB / 479.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.1075, allocations: 268.8 kB / 480 MB, free: 3.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00433/0.1118, allocations: 1.416 MB / 481.4 MB, free: 2.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1118, allocations: 0 / 481.4 MB, free: 2.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001629/0.1135, allocations: 0.8389 MB / 482.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.1135, allocations: 33.7 kB / 482.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.1135, allocations: 0 / 482.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/0.1147, allocations: 312.5 kB / 482.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.115, allocations: 63.84 kB / 482.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003865/0.1188, allocations: 2.941 MB / 485.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002947/0.1191, allocations: 39.62 kB / 485.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.154e-05/0.1192, allocations: 20.03 kB / 485.7 MB, free: 13.7 MB / 366.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.0002888/0.1195, allocations: 207.8 kB / 485.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.015e-05/0.1196, allocations: 31.77 kB / 485.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001645/0.1212, allocations: 0.7525 MB / 486.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1212, allocations: 0 / 486.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1212, allocations: 7.938 kB / 486.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.1213, allocations: 0 / 486.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004581/0.1217, allocations: 469.1 kB / 487.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.1217, allocations: 0 / 487.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.629e-05/0.1218, allocations: 23.98 kB / 487.1 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001186/0.123, allocations: 308.9 kB / 487.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.1231, allocations: 15.94 kB / 487.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00394/0.127, allocations: 2.91 MB / 490.4 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.127, allocations: 3.938 kB / 490.4 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.1287, allocations: 0.745 MB / 491.1 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.819e-05/0.1288, allocations: 108.8 kB / 491.2 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.391e-05/0.1288, allocations: 15.98 kB / 491.2 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.129, allocations: 12 kB / 491.3 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.228e-05/0.1291, allocations: 23.97 kB / 491.3 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.199e-05/0.1292, allocations: 19.92 kB / 491.3 MB, free: 7.801 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001756/0.1293, allocations: 192.5 kB / 491.5 MB, free: 7.613 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1293, allocations: 0 / 491.5 MB, free: 7.613 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004488/0.1298, allocations: 131.8 kB / 491.6 MB, free: 7.484 MB / 366.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.002031/0.1318, allocations: 1.301 MB / 492.9 MB, free: 6.145 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001412/0.1333, allocations: 0.74 MB / 493.7 MB, free: 5.379 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1333, allocations: 0.5 kB / 493.7 MB, free: 5.379 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008355/0.1341, allocations: 0.5252 MB / 494.2 MB, free: 4.828 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.1344, allocations: 27.34 kB / 494.2 MB, free: 4.805 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00583/0.1402, allocations: 3.959 MB / 498.2 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.1406, allocations: 0.7686 MB / 498.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.1407, allocations: 34.36 kB / 499 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.1408, allocations: 83.39 kB / 499.1 MB, free: 15.78 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1408, allocations: 0 / 499.1 MB, free: 15.78 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0288/0.1696, allocations: 9.74 MB / 0.4969 GB, free: 6.148 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.283/9.453, allocations: 4 kB / 0.4969 GB, free: 6.145 MB / 382.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)