Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.LVPartOfMVLVNetwork.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.LVPartOfMVLVNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_LVPartOfMVLVNetwork",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.ExampleWithFMUs.LVPartOfMVLVNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_ExampleWithFMUs_LVPartOfMVLVNetwork",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.0009883/0.0009883, allocations: 108.6 kB / 16.45 MB, free: 6.496 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.001055/0.001055, allocations: 189.5 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.259/1.259, 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.04684/0.04684, allocations: 8.096 MB / 299.3 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 63.91 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08472/0.0859, allocations: 51.51 MB / 465.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.ExampleWithFMUs.LVPartOfMVLVNetwork): time 0.003139/0.08907, allocations: 2.443 MB / 468 MB, free: 208 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.09086, allocations: 1.504 MB / 469.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.09097, allocations: 12 kB / 469.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003713/0.09135, allocations: 163 kB / 469.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003663/0.09173, allocations: 182.8 kB / 469.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001558/0.0933, allocations: 0.9569 MB / 470.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004783/0.09379, allocations: 422 kB / 471.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.09401, allocations: 152.4 kB / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.09418, allocations: 179.3 kB / 471.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002584/0.09445, allocations: 227.1 kB / 471.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.833e-05/0.0945, allocations: 32 kB / 471.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003116/0.09482, allocations: 203.8 kB / 472 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.916e-05/0.0949, allocations: 79.69 kB / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.09508, allocations: 210.9 kB / 472.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000573/0.09566, allocations: 0.5409 MB / 472.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.09567, allocations: 0 / 472.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.09568, allocations: 4 kB / 472.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.09569, allocations: 0 / 472.8 MB, free: 11.35 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.003518/0.09921, allocations: 1.149 MB / 473.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.09926, allocations: 15.89 kB / 473.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.09938, allocations: 71.38 kB / 474 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.953e-05/0.09948, allocations: 48.66 kB / 474.1 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004116/0.0999, allocations: 331.6 kB / 474.4 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.09993, allocations: 25.03 kB / 474.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.477e-05/0.09999, allocations: 28.38 kB / 474.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006256/0.1006, allocations: 422.5 kB / 474.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.1006, allocations: 7.875 kB / 474.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.843e-05/0.1007, allocations: 12 kB / 474.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.1007, allocations: 8 kB / 474.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005565/0.1013, allocations: 398.5 kB / 475.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.1033, allocations: 1.491 MB / 476.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.1044, allocations: 495.1 kB / 477.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003356/0.1047, allocations: 240.8 kB / 477.5 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.455e-05/0.1048, allocations: 19.92 kB / 477.5 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.1048, allocations: 38.56 kB / 477.5 MB, free: 6.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.625e-06/0.1048, allocations: 7.922 kB / 477.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.004314/0.1092, allocations: 1.51 MB / 479.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.1093, allocations: 55.41 kB / 479.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003162/0.1096, allocations: 278.5 kB / 479.4 MB, free: 4.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.1096, allocations: 33.7 kB / 479.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.1097, allocations: 173 kB / 479.6 MB, free: 4.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.1099, allocations: 162.6 kB / 479.7 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.11, allocations: 82.25 kB / 479.8 MB, free: 3.938 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1102, allocations: 342.8 kB / 480.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003198/0.1105, allocations: 217 kB / 480.4 MB, free: 3.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003171/0.1108, allocations: 221 kB / 480.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000678/0.1115, allocations: 487.5 kB / 481.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1115, allocations: 0 / 481.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002059/0.1136, allocations: 0.8913 MB / 482 MB, free: 1.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.1136, allocations: 8 kB / 482 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.1136, allocations: 4 kB / 482 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001726/0.1153, allocations: 398 kB / 482.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/0.1156, allocations: 67.91 kB / 482.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006151/0.1218, allocations: 5.92 MB / 488.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002993/0.1221, allocations: 31.73 kB / 488.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/0.1221, allocations: 23.98 kB / 488.4 MB, free: 10.92 MB / 366.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 (41): * 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: 3 * 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): 3 systems {(2,4), (2,4), (2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001886/0.1223, allocations: 161.7 kB / 488.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.546e-05/0.1224, allocations: 31.81 kB / 488.6 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002109/0.1245, allocations: 0.9156 MB / 489.5 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1245, allocations: 8 kB / 489.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.1245, allocations: 0 / 489.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1246, allocations: 0 / 489.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005073/0.1251, allocations: 0.5247 MB / 490 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1251, allocations: 0 / 490 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001852/0.1253, allocations: 55.91 kB / 490.1 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001609/0.1269, allocations: 394.1 kB / 490.5 MB, free: 8.758 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.1269, allocations: 4 kB / 490.5 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006138/0.1331, allocations: 5.866 MB / 496.3 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1331, allocations: 4.031 kB / 496.3 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002118/0.1352, allocations: 0.9471 MB / 497.3 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.1354, allocations: 116.7 kB / 497.4 MB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.447e-05/0.1354, allocations: 12 kB / 497.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000338/0.1358, allocations: 31.61 kB / 497.4 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.427e-05/0.1359, allocations: 40.38 kB / 497.5 MB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.669e-05/0.1359, allocations: 16 kB / 497.5 MB, free: 1.258 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002048/0.1361, allocations: 182 kB / 497.7 MB, free: 1.082 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1361, allocations: 0 / 497.7 MB, free: 1.082 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005824/0.1367, allocations: 167.9 kB / 497.8 MB, free: 0.918 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 (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,4), (2,4), (2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002787/0.1395, allocations: 1.822 MB / 499.7 MB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001842/0.1414, allocations: 0.9937 MB / 0.4889 GB, free: 14.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1414, allocations: 3.938 kB / 0.4889 GB, free: 14.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001298/0.1427, allocations: 0.7366 MB / 0.4896 GB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004322/0.1431, allocations: 52.67 kB / 0.4897 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007034/0.1502, allocations: 4.393 MB / 0.494 GB, free: 8.695 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.1505, allocations: 0.809 MB / 0.4948 GB, free: 7.863 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001453/0.1507, allocations: 46.94 kB / 0.4948 GB, free: 7.816 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.1508, allocations: 119.4 kB / 0.4949 GB, free: 7.699 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1508, allocations: 0 / 0.4949 GB, free: 7.699 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2193/0.3702, allocations: 13.82 MB / 0.5084 GB, free: 45.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.06, allocations: 9.812 kB / 0.5084 GB, free: 45.92 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.LVPartOfMVLVNetwork.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.LVPartOfMVLVNetwork.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.LVPartOfMVLVNetwork.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.LVPartOfMVLVNetwork.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.LVPartOfMVLVNetwork_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_ExampleWithFMUs_LVPartOfMVLVNetwork.fmu > PowerSysPro_PowerSysPro.Examples.ExampleWithFMUs.LVPartOfMVLVNetwork.pipe 2>&1)