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.001274/0.001274, allocations: 104 kB / 16.45 MB, free: 6.395 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.0013/0.0013, allocations: 192 kB / 17.39 MB, free: 5.66 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.338/1.338, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05379/0.05379, allocations: 8.109 MB / 299.4 MB, free: 6.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 59.91 kB / 414 MB, free: 22.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08936/0.0913, allocations: 51.51 MB / 465.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.003507/0.09485, allocations: 1.925 MB / 467.4 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002754/0.09764, allocations: 1.594 MB / 469 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003025/0.09796, allocations: 8 kB / 469 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005453/0.09852, allocations: 131.2 kB / 469.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005418/0.09911, allocations: 159 kB / 469.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001818/0.1009, allocations: 0.8634 MB / 470.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000671/0.1016, allocations: 358.4 kB / 470.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002772/0.1019, allocations: 134.6 kB / 470.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002342/0.1022, allocations: 139.4 kB / 470.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003633/0.1025, allocations: 187.3 kB / 471 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.263e-05/0.1026, allocations: 32 kB / 471 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004821/0.1031, allocations: 219.8 kB / 471.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.206e-05/0.1032, allocations: 71.7 kB / 471.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000221/0.1034, allocations: 167.2 kB / 471.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000808/0.1042, allocations: 0.5141 MB / 472 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1043, allocations: 0 / 472 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1043, allocations: 0 / 472 MB, free: 12.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.002e-05/0.1043, allocations: 0 / 472 MB, free: 12.27 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.002873/0.1072, allocations: 0.9328 MB / 472.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1072, allocations: 15.89 kB / 472.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.519e-05/0.1073, allocations: 58.72 kB / 473 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002449/0.1076, allocations: 52.67 kB / 473 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004176/0.108, allocations: 311.8 kB / 473.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.78e-05/0.108, allocations: 20.81 kB / 473.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.327e-05/0.1081, allocations: 28.38 kB / 473.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005921/0.1087, allocations: 339.7 kB / 473.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.1087, allocations: 3.938 kB / 473.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.1088, allocations: 8 kB / 473.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1088, allocations: 8 kB / 473.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005301/0.1093, allocations: 321.6 kB / 474 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001953/0.1113, allocations: 1.35 MB / 475.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009489/0.1122, allocations: 0.5093 MB / 475.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003232/0.1126, allocations: 212.8 kB / 476.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001189/0.1138, allocations: 0.8936 MB / 477 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005809/0.1144, allocations: 362 kB / 477.3 MB, free: 6.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 2.304e-06/0.1144, allocations: 0 / 477.3 MB, free: 6.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003275/0.1176, allocations: 1.107 MB / 478.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.1178, allocations: 195.9 kB / 478.6 MB, free: 5.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/0.1181, allocations: 264.9 kB / 478.9 MB, free: 4.844 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.819e-05/0.1182, allocations: 29.7 kB / 478.9 MB, free: 4.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.1183, allocations: 160.7 kB / 479.1 MB, free: 4.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.821e-05/0.1184, allocations: 111.1 kB / 479.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.1186, allocations: 82.11 kB / 479.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1187, allocations: 334.8 kB / 479.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003137/0.1191, allocations: 192.8 kB / 479.8 MB, free: 3.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003734/0.1195, allocations: 268.8 kB / 480.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00476/0.1242, allocations: 1.42 MB / 481.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.1242, allocations: 0 / 481.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001822/0.1261, allocations: 0.8274 MB / 482.3 MB, free: 1.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.389e-05/0.1261, allocations: 41.69 kB / 482.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/0.1262, allocations: 0 / 482.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.1275, allocations: 312.5 kB / 482.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.1277, allocations: 63.91 kB / 482.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004213/0.132, allocations: 2.926 MB / 485.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003315/0.1323, allocations: 51.7 kB / 485.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.1324, allocations: 20 kB / 485.7 MB, free: 13.76 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.0003156/0.1327, allocations: 200.5 kB / 485.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.829e-05/0.1328, allocations: 35.8 kB / 485.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00173/0.1345, allocations: 0.7563 MB / 486.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1345, allocations: 0 / 486.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.1345, allocations: 4 kB / 486.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.1345, allocations: 3.984 kB / 486.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005049/0.135, allocations: 473.1 kB / 487.2 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.1351, allocations: 0 / 487.2 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.554e-05/0.1352, allocations: 27.92 kB / 487.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001232/0.1364, allocations: 304.5 kB / 487.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.509e-05/0.1364, allocations: 19.94 kB / 487.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004061/0.1405, allocations: 2.918 MB / 490.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1405, allocations: 0 / 490.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.1425, allocations: 0.7413 MB / 491.2 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.1426, allocations: 108.8 kB / 491.3 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.08e-05/0.1427, allocations: 12 kB / 491.3 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002805/0.143, allocations: 19.98 kB / 491.3 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.1431, allocations: 23.97 kB / 491.3 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-05/0.1432, allocations: 11.94 kB / 491.3 MB, free: 7.852 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002778/0.1435, allocations: 192.5 kB / 491.5 MB, free: 7.664 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1435, allocations: 0 / 491.5 MB, free: 7.664 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005054/0.144, allocations: 127.9 kB / 491.7 MB, free: 7.539 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.002059/0.1461, allocations: 1.305 MB / 493 MB, free: 6.195 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001481/0.1475, allocations: 0.7361 MB / 493.7 MB, free: 5.434 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1476, allocations: 0 / 493.7 MB, free: 5.434 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009339/0.1485, allocations: 0.5295 MB / 494.2 MB, free: 4.879 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002379/0.1488, allocations: 27.81 kB / 494.3 MB, free: 4.855 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006544/0.1553, allocations: 3.974 MB / 498.2 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/0.1557, allocations: 0.7686 MB / 499 MB, free: 15.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.1559, allocations: 38.44 kB / 499 MB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.156, allocations: 79.41 kB / 499.1 MB, free: 15.82 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.156, allocations: 0 / 499.1 MB, free: 15.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03853/0.1946, allocations: 9.481 MB / 0.4967 GB, free: 6.445 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/10.35, allocations: 7.031 kB / 0.4967 GB, free: 6.441 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)