Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceOneLineOneLoad.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.OneSourceOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLineOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLineOneLoad",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.00101/0.00101, allocations: 104.7 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.00105/0.00105, allocations: 186.4 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.243/1.243, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04388/0.04388, allocations: 8.105 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 63.89 kB / 414 MB, free: 22.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07938/0.08052, allocations: 51.52 MB / 465.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLineOneLoad): time 0.002092/0.08265, allocations: 1.228 MB / 466.7 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.08426, allocations: 1.481 MB / 468.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.302e-05/0.08433, allocations: 4 kB / 468.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003083/0.08465, allocations: 111.5 kB / 468.3 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001933/0.08485, allocations: 75.47 kB / 468.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.08628, allocations: 0.8945 MB / 469.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002241/0.08652, allocations: 159.2 kB / 469.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.08664, allocations: 49.52 kB / 469.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.424e-05/0.08671, allocations: 63.77 kB / 469.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.08686, allocations: 91.61 kB / 469.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.0869, allocations: 19.94 kB / 469.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003123/0.08721, allocations: 195.8 kB / 469.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.447e-05/0.08726, allocations: 31.86 kB / 469.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.915e-05/0.08733, allocations: 75.59 kB / 470 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003791/0.08772, allocations: 315.2 kB / 470.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.08773, allocations: 0 / 470.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.08774, allocations: 3.984 kB / 470.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.08774, allocations: 0 / 470.3 MB, free: 13.89 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001527/0.08928, allocations: 0.635 MB / 470.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.08932, allocations: 15.89 kB / 470.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.78e-05/0.08937, allocations: 46.73 kB / 471 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.415e-05/0.08942, allocations: 20.84 kB / 471 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.08964, allocations: 216.7 kB / 471.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.08966, allocations: 12.61 kB / 471.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.08969, allocations: 12.38 kB / 471.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.08997, allocations: 183.4 kB / 471.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.966e-06/0.08999, allocations: 0 / 471.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.74e-05/0.09002, allocations: 4 kB / 471.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.09003, allocations: 4 kB / 471.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002138/0.09024, allocations: 152.6 kB / 471.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008962/0.09115, allocations: 0.7108 MB / 472.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004639/0.09162, allocations: 202.5 kB / 472.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.09176, allocations: 96.78 kB / 472.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.09181, allocations: 11.98 kB / 472.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.09183, allocations: 34.56 kB / 472.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.192e-06/0.09184, allocations: 7.938 kB / 472.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001607/0.09345, allocations: 0.5648 MB / 473.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.09349, allocations: 55.41 kB / 473.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.09366, allocations: 162.2 kB / 473.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.09369, allocations: 33.7 kB / 473.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.408e-05/0.09376, allocations: 112.4 kB / 473.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.179e-05/0.0938, allocations: 59.52 kB / 473.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.096e-05/0.09388, allocations: 45.64 kB / 473.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.313e-05/0.09398, allocations: 326.8 kB / 474 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.09412, allocations: 91.97 kB / 474 MB, free: 9.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.09426, allocations: 98.81 kB / 474.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002764/0.09454, allocations: 216.6 kB / 474.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.09455, allocations: 0 / 474.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007455/0.0953, allocations: 380.5 kB / 474.7 MB, free: 9.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.09532, allocations: 11.94 kB / 474.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.09533, allocations: 3.938 kB / 474.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005923/0.09593, allocations: 136.7 kB / 474.9 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.09605, allocations: 31.98 kB / 474.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/0.09834, allocations: 2.044 MB / 476.9 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001301/0.09849, allocations: 15.89 kB / 477 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.865e-05/0.09851, allocations: 8 kB / 477 MB, free: 6.762 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.09862, allocations: 125.8 kB / 477.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.206e-05/0.09867, allocations: 19.84 kB / 477.1 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007725/0.09945, allocations: 366.3 kB / 477.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.09946, allocations: 4 kB / 477.5 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-06/0.09947, allocations: 0 / 477.5 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.09947, allocations: 0 / 477.5 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002741/0.09975, allocations: 305.3 kB / 477.8 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.09976, allocations: 0 / 477.8 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.156e-05/0.09985, allocations: 23.92 kB / 477.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005342/0.1004, allocations: 132.7 kB / 477.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.1004, allocations: 11.98 kB / 477.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002015/0.1024, allocations: 2.009 MB / 479.9 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.1025, allocations: 3.984 kB / 480 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007307/0.1032, allocations: 424.1 kB / 480.4 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.276e-05/0.1033, allocations: 100.8 kB / 480.5 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.1033, allocations: 4 kB / 480.5 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.1034, allocations: 11.98 kB / 480.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.401e-05/0.1035, allocations: 11.98 kB / 480.5 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.301e-05/0.1035, allocations: 4 kB / 480.5 MB, free: 2.996 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001176/0.1036, allocations: 136 kB / 480.6 MB, free: 2.863 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1036, allocations: 0 / 480.6 MB, free: 2.863 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.1039, allocations: 64 kB / 480.7 MB, free: 2.801 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00102/0.105, allocations: 0.9775 MB / 481.7 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006835/0.1057, allocations: 388.9 kB / 482 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1057, allocations: 3.984 kB / 482.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004216/0.1061, allocations: 258.5 kB / 482.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.1064, allocations: 23.92 kB / 482.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.1095, allocations: 2.379 MB / 484.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.1097, allocations: 0.7203 MB / 485.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.773e-05/0.1098, allocations: 17.41 kB / 485.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.991e-05/0.1099, allocations: 47.42 kB / 485.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1099, allocations: 0 / 485.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.137, allocations: 5.97 MB / 491.5 MB, free: 7.965 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.24/10.38, allocations: 4.062 kB / 491.5 MB, free: 7.961 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceOneLineOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceOneLineOneLoad_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_OneSourceOneLineOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceOneLineOneLoad.pipe 2>&1)