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.001425/0.001425, allocations: 103.5 kB / 16.45 MB, free: 6.43 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.001233/0.001233, allocations: 192 kB / 17.39 MB, free: 5.688 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.397/1.397, 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.04949/0.04949, allocations: 8.097 MB / 299.3 MB, free: 6.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 59.89 kB / 414 MB, free: 22.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08851/0.09036, allocations: 51.52 MB / 465.5 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.00307/0.09347, allocations: 1.921 MB / 467.4 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.0958, allocations: 1.594 MB / 469 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.09593, allocations: 4 kB / 469 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004068/0.09636, allocations: 143.2 kB / 469.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003727/0.09674, allocations: 155 kB / 469.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001691/0.09844, allocations: 0.8634 MB / 470.2 MB, free: 14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005384/0.09899, allocations: 350.5 kB / 470.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002571/0.09926, allocations: 134.7 kB / 470.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.09942, allocations: 143.4 kB / 470.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002872/0.09972, allocations: 179.3 kB / 471 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.434e-05/0.09978, allocations: 32 kB / 471 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004341/0.1002, allocations: 227.8 kB / 471.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.082e-05/0.1003, allocations: 67.72 kB / 471.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.1005, allocations: 167.2 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006861/0.1012, allocations: 0.5141 MB / 472 MB, free: 12.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1012, allocations: 4 kB / 472 MB, free: 12.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1012, allocations: 0 / 472 MB, free: 12.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.1012, allocations: 0 / 472 MB, free: 12.2 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.002738/0.104, allocations: 0.9367 MB / 472.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.104, allocations: 19.83 kB / 472.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.298e-05/0.1041, allocations: 54.73 kB / 473 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002381/0.1043, allocations: 44.73 kB / 473 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003994/0.1048, allocations: 315.7 kB / 473.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.748e-05/0.1048, allocations: 20.81 kB / 473.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.453e-05/0.1048, allocations: 28.31 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005816/0.1054, allocations: 339.8 kB / 473.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.1055, allocations: 7.938 kB / 473.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.1055, allocations: 4 kB / 473.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.1055, allocations: 4 kB / 473.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005464/0.1061, allocations: 333.6 kB / 474 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.108, allocations: 1.346 MB / 475.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009298/0.109, allocations: 0.5093 MB / 475.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003109/0.1093, allocations: 200.8 kB / 476.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001202/0.1105, allocations: 0.9053 MB / 477 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006363/0.1111, allocations: 370 kB / 477.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 3.506e-06/0.1111, allocations: 0 / 477.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003421/0.1146, allocations: 1.099 MB / 478.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/0.1148, allocations: 195.9 kB / 478.6 MB, free: 5.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000341/0.1151, allocations: 268.9 kB / 478.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.488e-05/0.1152, allocations: 33.7 kB / 478.9 MB, free: 4.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.1153, allocations: 156.7 kB / 479.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.1154, allocations: 107.1 kB / 479.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.1156, allocations: 86.11 kB / 479.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1157, allocations: 334.8 kB / 479.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.116, allocations: 188.8 kB / 479.8 MB, free: 3.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003866/0.1164, allocations: 264.9 kB / 480.1 MB, free: 3.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0049/0.1213, allocations: 1.424 MB / 481.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.1214, allocations: 0 / 481.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001926/0.1233, allocations: 0.8236 MB / 482.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.446e-05/0.1234, allocations: 33.7 kB / 482.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.1234, allocations: 4 kB / 482.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001298/0.1247, allocations: 316.5 kB / 482.6 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000233/0.1249, allocations: 63.84 kB / 482.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004226/0.1292, allocations: 2.938 MB / 485.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003307/0.1295, allocations: 39.67 kB / 485.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.455e-05/0.1296, allocations: 28.03 kB / 485.7 MB, free: 13.69 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.0003152/0.1299, allocations: 196.5 kB / 485.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.016e-05/0.13, allocations: 31.81 kB / 485.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001756/0.1317, allocations: 0.7487 MB / 486.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1318, allocations: 4 kB / 486.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1318, allocations: 4 kB / 486.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1318, allocations: 3.938 kB / 486.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005026/0.1323, allocations: 477.1 kB / 487.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1323, allocations: 0 / 487.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.1324, allocations: 31.92 kB / 487.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001273/0.1337, allocations: 308.5 kB / 487.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.201e-05/0.1337, allocations: 11.94 kB / 487.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004144/0.1379, allocations: 2.914 MB / 490.4 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1379, allocations: 3.938 kB / 490.4 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00171/0.1396, allocations: 0.7452 MB / 491.2 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.1397, allocations: 108.9 kB / 491.3 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.349e-05/0.1398, allocations: 11.98 kB / 491.3 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.14, allocations: 12 kB / 491.3 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.92e-05/0.1401, allocations: 27.97 kB / 491.3 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.1402, allocations: 19.92 kB / 491.3 MB, free: 7.773 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002116/0.1404, allocations: 188.5 kB / 491.5 MB, free: 7.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1404, allocations: 0 / 491.5 MB, free: 7.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000526/0.1409, allocations: 127.9 kB / 491.7 MB, free: 7.465 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.002161/0.1431, allocations: 1.313 MB / 493 MB, free: 6.117 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.1446, allocations: 0.7322 MB / 493.7 MB, free: 5.359 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1446, allocations: 0 / 493.7 MB, free: 5.359 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000959/0.1456, allocations: 0.5295 MB / 494.2 MB, free: 4.805 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002444/0.1459, allocations: 28.38 kB / 494.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006569/0.1524, allocations: 3.965 MB / 498.2 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.1529, allocations: 0.7686 MB / 499 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.153, allocations: 34.36 kB / 499 MB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.1532, allocations: 91.39 kB / 499.1 MB, free: 15.74 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1532, allocations: 0 / 499.1 MB, free: 15.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03731/0.1905, allocations: 9.476 MB / 0.4967 GB, free: 6.375 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/10.65, allocations: 4.062 kB / 0.4967 GB, free: 6.371 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)