Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork.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.ExampleWithFMUs.MVPartOfMVLVNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_MVPartOfMVLVNetwork",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_MVPartOfMVLVNetwork",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.001132/0.001132, allocations: 109 kB / 16.45 MB, free: 6.445 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.001134/0.001134, allocations: 192.7 kB / 17.39 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.315/1.315, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05247/0.05247, allocations: 8.095 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 59.91 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09136/0.09249, allocations: 51.52 MB / 465.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork): time 0.00296/0.09549, allocations: 2.097 MB / 467.6 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002051/0.09756, allocations: 1.516 MB / 469.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.09768, allocations: 4 kB / 469.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003873/0.09807, allocations: 139.2 kB / 469.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000389/0.09849, allocations: 167 kB / 469.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00184/0.1003, allocations: 1.077 MB / 470.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004118/0.1008, allocations: 314.5 kB / 470.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.101, allocations: 130.9 kB / 470.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.1011, allocations: 127.5 kB / 471.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001763/0.1013, allocations: 155.2 kB / 471.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.56e-05/0.1013, allocations: 24 kB / 471.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003978/0.1017, allocations: 243.8 kB / 471.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.096e-05/0.1018, allocations: 59.83 kB / 471.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.1019, allocations: 151.2 kB / 471.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005243/0.1025, allocations: 0.4916 MB / 472.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1025, allocations: 0 / 472.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1025, allocations: 0 / 472.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1025, allocations: 3.938 kB / 472.2 MB, free: 11.96 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.003793/0.1063, allocations: 1.131 MB / 473.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.1064, allocations: 12.03 kB / 473.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001195/0.1065, allocations: 71.28 kB / 473.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.933e-05/0.1066, allocations: 32.56 kB / 473.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.1069, allocations: 283.7 kB / 473.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.1069, allocations: 24.92 kB / 473.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.935e-05/0.107, allocations: 28.38 kB / 473.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005749/0.1075, allocations: 381 kB / 474.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.1076, allocations: 3.938 kB / 474.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.552e-05/0.1076, allocations: 16 kB / 474.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1076, allocations: 4 kB / 474.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004565/0.1081, allocations: 314.1 kB / 474.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.11, allocations: 1.454 MB / 475.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009939/0.111, allocations: 409.3 kB / 476.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002448/0.1112, allocations: 177.3 kB / 476.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.527e-05/0.1113, allocations: 11.98 kB / 476.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.1113, allocations: 38.56 kB / 476.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.442e-06/0.1114, allocations: 3.938 kB / 476.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.004032/0.1154, allocations: 1.242 MB / 477.8 MB, free: 6.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/0.1155, allocations: 114.8 kB / 477.9 MB, free: 5.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.1157, allocations: 220.1 kB / 478.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/0.1157, allocations: 29.7 kB / 478.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.733e-05/0.1158, allocations: 168.3 kB / 478.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.745e-05/0.1159, allocations: 102.6 kB / 478.4 MB, free: 5.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.116, allocations: 82.11 kB / 478.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.1161, allocations: 334.8 kB / 478.8 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002903/0.1164, allocations: 208.8 kB / 479 MB, free: 4.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000338/0.1168, allocations: 248.2 kB / 479.2 MB, free: 4.477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006478/0.1174, allocations: 473.1 kB / 479.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1174, allocations: 0 / 479.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.002139/0.1196, allocations: 0.8407 MB / 480.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.1196, allocations: 4 kB / 480.6 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1196, allocations: 0 / 480.6 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002112/0.1217, allocations: 449.2 kB / 481 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002888/0.122, allocations: 67.89 kB / 481.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005156/0.1272, allocations: 4.137 MB / 485.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003396/0.1276, allocations: 39.62 kB / 485.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.805e-05/0.1276, allocations: 19.98 kB / 485.3 MB, free: 14.15 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001794/0.1278, allocations: 145.7 kB / 485.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.474e-05/0.1279, allocations: 27.78 kB / 485.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002172/0.1301, allocations: 0.7823 MB / 486.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.1301, allocations: 3.938 kB / 486.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1301, allocations: 4 kB / 486.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.1301, allocations: 3.984 kB / 486.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004438/0.1305, allocations: 445 kB / 486.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1306, allocations: 8 kB / 486.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.1307, allocations: 39.98 kB / 486.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002006/0.1327, allocations: 441.2 kB / 487.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.828e-05/0.1328, allocations: 12 kB / 487.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005129/0.1379, allocations: 4.126 MB / 491.3 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1379, allocations: 0 / 491.3 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002056/0.14, allocations: 0.8166 MB / 492.1 MB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.352e-05/0.1401, allocations: 104.7 kB / 492.2 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.735e-05/0.1401, allocations: 4 kB / 492.2 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002636/0.1404, allocations: 19.98 kB / 492.2 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.545e-05/0.1405, allocations: 23.97 kB / 492.2 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.823e-05/0.1405, allocations: 12 kB / 492.2 MB, free: 6.762 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001416/0.1407, allocations: 160.5 kB / 492.4 MB, free: 6.609 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1407, allocations: 0 / 492.4 MB, free: 6.609 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005446/0.1412, allocations: 131.8 kB / 492.5 MB, free: 6.48 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002841/0.1441, allocations: 1.628 MB / 494.2 MB, free: 4.816 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001868/0.146, allocations: 0.8082 MB / 495 MB, free: 3.984 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.146, allocations: 0 / 495 MB, free: 3.984 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.1473, allocations: 0.5714 MB / 495.5 MB, free: 3.387 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.1476, allocations: 16.67 kB / 495.6 MB, free: 3.371 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007351/0.155, allocations: 3.847 MB / 499.4 MB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003994/0.1554, allocations: 0.7726 MB / 0.4885 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.1556, allocations: 41.89 kB / 0.4885 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.1557, allocations: 95.41 kB / 0.4886 GB, free: 14.49 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1557, allocations: 0 / 0.4886 GB, free: 14.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03521/0.1909, allocations: 9.787 MB / 0.4981 GB, free: 4.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.29/9.481, allocations: 19.86 kB / 0.4982 GB, free: 4.82 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_MVPartOfMVLVNetwork_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_MVPartOfMVLVNetwork.fmu > PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.MVPartOfMVLVNetwork.pipe 2>&1)