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.001099/0.001099, allocations: 102.6 kB / 16.45 MB, free: 6.453 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.001144/0.001144, allocations: 189.4 kB / 17.38 MB, free: 5.668 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.296/1.296, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04427/0.04427, allocations: 8.104 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 63.91 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09416/0.09535, allocations: 51.5 MB / 465.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.002759/0.09815, allocations: 1.932 MB / 467.4 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.1001, allocations: 1.594 MB / 469 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.1003, allocations: 4 kB / 469 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003659/0.1006, allocations: 135.3 kB / 469.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003255/0.101, allocations: 163 kB / 469.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00146/0.1024, allocations: 0.8636 MB / 470.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004161/0.1029, allocations: 350.5 kB / 470.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002201/0.1031, allocations: 130.7 kB / 470.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.1032, allocations: 143.4 kB / 470.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002347/0.1035, allocations: 187.3 kB / 471 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.725e-05/0.1036, allocations: 32 kB / 471 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003505/0.1039, allocations: 219.8 kB / 471.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.718e-05/0.104, allocations: 71.7 kB / 471.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001605/0.1042, allocations: 163.2 kB / 471.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005676/0.1047, allocations: 0.5141 MB / 471.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1047, allocations: 4 kB / 472 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1048, allocations: 0 / 472 MB, free: 12.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.1048, allocations: 0 / 472 MB, free: 12.16 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.002387/0.1072, allocations: 0.9328 MB / 472.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.1072, allocations: 15.89 kB / 472.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.591e-05/0.1073, allocations: 54.73 kB / 473 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002095/0.1075, allocations: 52.72 kB / 473 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.1079, allocations: 315.7 kB / 473.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.1079, allocations: 20.81 kB / 473.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.365e-05/0.1079, allocations: 28.31 kB / 473.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005143/0.1085, allocations: 335.8 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.1085, allocations: 7.938 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.1085, allocations: 4 kB / 473.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.1085, allocations: 8 kB / 473.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004706/0.109, allocations: 325.6 kB / 474 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.1106, allocations: 1.35 MB / 475.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000802/0.1115, allocations: 0.517 MB / 475.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002737/0.1117, allocations: 200.8 kB / 476.1 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009761/0.1127, allocations: 0.8975 MB / 477 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004745/0.1132, allocations: 366 kB / 477.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.483e-06/0.1132, allocations: 0 / 477.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002933/0.1162, allocations: 1.091 MB / 478.4 MB, free: 5.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.1163, allocations: 199.8 kB / 478.6 MB, free: 5.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/0.1166, allocations: 268.9 kB / 478.9 MB, free: 4.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.456e-05/0.1166, allocations: 33.7 kB / 478.9 MB, free: 4.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.1167, allocations: 160.7 kB / 479.1 MB, free: 4.543 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.348e-05/0.1168, allocations: 107.1 kB / 479.2 MB, free: 4.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.117, allocations: 90.11 kB / 479.3 MB, free: 4.344 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.1171, allocations: 334.8 kB / 479.6 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002875/0.1174, allocations: 192.8 kB / 479.8 MB, free: 3.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003185/0.1177, allocations: 260.9 kB / 480 MB, free: 3.539 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004161/0.1219, allocations: 1.424 MB / 481.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1219, allocations: 0 / 481.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001578/0.1235, allocations: 0.8275 MB / 482.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.867e-05/0.1236, allocations: 40.03 kB / 482.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1236, allocations: 0 / 482.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/0.1247, allocations: 312.6 kB / 482.6 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002073/0.125, allocations: 63.91 kB / 482.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003619/0.1286, allocations: 2.948 MB / 485.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002799/0.1289, allocations: 39.67 kB / 485.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.729e-05/0.1289, allocations: 24.03 kB / 485.7 MB, free: 13.65 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.0002663/0.1292, allocations: 204.3 kB / 485.9 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.234e-05/0.1293, allocations: 31.81 kB / 485.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/0.1308, allocations: 0.7485 MB / 486.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1308, allocations: 0 / 486.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.1308, allocations: 4.094 kB / 486.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.1308, allocations: 7.922 kB / 486.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004053/0.1312, allocations: 477 kB / 487.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1312, allocations: 0 / 487.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.15e-05/0.1313, allocations: 27.98 kB / 487.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001112/0.1325, allocations: 308.5 kB / 487.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.1325, allocations: 15.92 kB / 487.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003497/0.136, allocations: 2.906 MB / 490.4 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.136, allocations: 112 / 490.4 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.1375, allocations: 0.753 MB / 491.2 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.051e-05/0.1376, allocations: 108.9 kB / 491.3 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.553e-05/0.1376, allocations: 8 kB / 491.3 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.1378, allocations: 15.98 kB / 491.3 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.82e-05/0.1379, allocations: 23.97 kB / 491.3 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.1379, allocations: 15.94 kB / 491.3 MB, free: 7.746 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001747/0.1381, allocations: 192.5 kB / 491.5 MB, free: 7.559 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1381, allocations: 0 / 491.5 MB, free: 7.559 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004401/0.1386, allocations: 127.9 kB / 491.7 MB, free: 7.434 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.001776/0.1403, allocations: 1.313 MB / 493 MB, free: 6.082 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.1416, allocations: 0.7244 MB / 493.7 MB, free: 5.332 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1416, allocations: 0.5 kB / 493.7 MB, free: 5.332 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007872/0.1424, allocations: 0.529 MB / 494.2 MB, free: 4.777 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.1426, allocations: 32.36 kB / 494.3 MB, free: 4.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005458/0.1481, allocations: 3.97 MB / 498.2 MB, free: 0.625 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.1484, allocations: 0.7686 MB / 499 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.1486, allocations: 30.28 kB / 499 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.1487, allocations: 87.39 kB / 499.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1487, allocations: 0 / 499.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03052/0.1792, allocations: 9.485 MB / 0.4967 GB, free: 6.336 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.02/9.199, allocations: 8 kB / 0.4967 GB, free: 6.328 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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe 2>&1)