Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000883/0.0008829, allocations: 173.7 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.314/1.314, allocations: 205.4 MB / 222.2 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000724/0.000724, allocations: 84.88 kB / 270.6 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1657/0.1657, allocations: 38.08 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003422/0.0003422, allocations: 16 kB / 423.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2469, allocations: 56.32 MB / 479.7 MB, free: 9.246 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.004843/0.2518, allocations: 5.36 MB / 485.1 MB, free: 5.676 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002875/0.2547, allocations: 1.934 MB / 487 MB, free: 4.309 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004495/0.2552, allocations: 29.44 kB / 487.1 MB, free: 4.297 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004864/0.2556, allocations: 145.2 kB / 487.2 MB, free: 4.219 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001194/0.2569, allocations: 333.2 kB / 487.5 MB, free: 4.039 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001395/0.2583, allocations: 358 kB / 487.9 MB, free: 3.898 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001256/0.2595, allocations: 0.8756 MB / 488.7 MB, free: 3.574 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009872/0.2605, allocations: 0.6084 MB / 489.4 MB, free: 3.195 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004984/0.261, allocations: 276.8 kB / 489.6 MB, free: 3.094 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006513/0.2617, allocations: 454.2 kB / 490.1 MB, free: 2.969 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.083e-05/0.2618, allocations: 26.12 kB / 490.1 MB, free: 2.969 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003792/0.2622, allocations: 158.9 kB / 490.2 MB, free: 2.926 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002964/0.2625, allocations: 265.2 kB / 490.5 MB, free: 2.855 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003344/0.2628, allocations: 317 kB / 490.8 MB, free: 2.672 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008049/0.2636, allocations: 0.5975 MB / 491.4 MB, free: 2.551 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.2636, allocations: 0 / 491.4 MB, free: 2.551 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.2637, allocations: 0.9688 kB / 491.4 MB, free: 2.551 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.2637, allocations: 0 / 491.4 MB, free: 2.551 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001532/0.2652, allocations: 0.8065 MB / 492.2 MB, free: 1.953 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.2653, allocations: 13.69 kB / 492.2 MB, free: 1.949 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001376/0.2654, allocations: 93.78 kB / 492.3 MB, free: 1.883 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009688/0.2664, allocations: 137 kB / 492.5 MB, free: 1.844 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00088/0.2673, allocations: 0.5156 MB / 493 MB, free: 1.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.227e-05/0.2673, allocations: 35.16 kB / 493 MB, free: 1.484 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003569/0.2677, allocations: 138.9 kB / 493.1 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.269, allocations: 0.8513 MB / 494 MB, free: 1.016 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.2691, allocations: 6.594 kB / 494 MB, free: 1.012 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.874e-05/0.2691, allocations: 26.09 kB / 494 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004574/0.2696, allocations: 71.23 kB / 494.1 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.2706, allocations: 0.6182 MB / 494.7 MB, free: 0.793 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004745/0.2754, allocations: 3.789 MB / 498.5 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.2765, allocations: 0.542 MB / 499 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004796/0.277, allocations: 318.4 kB / 499.4 MB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.82e-05/0.2771, allocations: 12 kB / 499.4 MB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.2771, allocations: 37.66 kB / 499.4 MB, free: 13.78 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 3.366e-06/0.2771, allocations: 0 / 499.4 MB, free: 13.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.00308/0.2802, allocations: 1.847 MB / 0.4895 GB, free: 12.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.2803, allocations: 82.98 kB / 0.4896 GB, free: 12.67 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004474/0.2808, allocations: 415.4 kB / 0.49 GB, free: 12.42 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.865e-05/0.2808, allocations: 36.92 kB / 0.49 GB, free: 12.38 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/0.281, allocations: 333.7 kB / 0.4903 GB, free: 12.08 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.2812, allocations: 195.5 kB / 0.4905 GB, free: 11.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-05/0.2813, allocations: 10.47 kB / 0.4905 GB, free: 11.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.2814, allocations: 376 kB / 0.4909 GB, free: 11.55 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005676/0.282, allocations: 376.9 kB / 0.4912 GB, free: 11.39 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007293/0.2827, allocations: 0.5952 MB / 0.4918 GB, free: 10.93 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.2842, allocations: 1.063 MB / 0.4929 GB, free: 10.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.2842, allocations: 2.25 kB / 0.4929 GB, free: 10.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004442/0.2886, allocations: 1.993 MB / 0.4948 GB, free: 9.188 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.2887, allocations: 9.969 kB / 0.4948 GB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.2887, allocations: 10.62 kB / 0.4948 GB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002439/0.2912, allocations: 0.9652 MB / 0.4958 GB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004546/0.2916, allocations: 125.4 kB / 0.4959 GB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009852/0.3015, allocations: 7.363 MB / 0.5031 GB, free: 2.012 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006359/0.3022, allocations: 39.97 kB / 0.5031 GB, free: 1.973 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.862e-05/0.3023, allocations: 35.94 kB / 0.5032 GB, free: 1.938 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(23,24.6%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004173/0.3027, allocations: 245.5 kB / 0.5034 GB, free: 1.688 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.563e-05/0.3028, allocations: 59.3 kB / 0.5035 GB, free: 1.629 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001253/0.304, allocations: 0.7219 MB / 0.5042 GB, free: 0.8984 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.3041, allocations: 15.98 kB / 0.5042 GB, free: 0.8828 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.3041, allocations: 0 / 0.5042 GB, free: 0.8828 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.3041, allocations: 0 / 0.5042 GB, free: 0.8828 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002733/0.3068, allocations: 1.536 MB / 0.5057 GB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.3068, allocations: 4.078 kB / 0.5057 GB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.3079, allocations: 187.8 kB / 0.5059 GB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.3079, allocations: 4 kB / 0.5059 GB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-05/0.3079, allocations: 27.98 kB / 0.5059 GB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.308, allocations: 0 / 0.5059 GB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/0.308, allocations: 11.92 kB / 0.5059 GB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.3093, allocations: 0.9931 MB / 0.5069 GB, free: 14.03 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.3094, allocations: 124.5 kB / 0.507 GB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.665e-05/0.3095, allocations: 27.98 kB / 0.507 GB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003127/0.3098, allocations: 19.97 kB / 0.507 GB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.3099, allocations: 36.47 kB / 0.5071 GB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.301e-05/0.31, allocations: 19.98 kB / 0.5071 GB, free: 13.79 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002741/0.3103, allocations: 279.1 kB / 0.5074 GB, free: 13.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3103, allocations: 0 / 0.5074 GB, free: 13.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007935/0.3111, allocations: 212 kB / 0.5076 GB, free: 13.31 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 21 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001549/0.3126, allocations: 1.561 MB / 0.5091 GB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002388/0.315, allocations: 1.461 MB / 0.5105 GB, free: 10.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.315, allocations: 0 / 0.5105 GB, free: 10.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004241/0.3155, allocations: 306.9 kB / 0.5108 GB, free: 9.922 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007043/0.3162, allocations: 124.4 kB / 0.5109 GB, free: 9.801 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/0.3268, allocations: 7.131 MB / 0.5179 GB, free: 2.496 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000535/0.3274, allocations: 0.9843 MB / 0.5188 GB, free: 1.484 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003735/0.3278, allocations: 239.3 kB / 0.5191 GB, free: 1.25 MB / 346.7 MB Notification: Performance of SimCode: time 9.21e-07/0.3278, allocations: 4 kB / 0.5191 GB, free: 1.246 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.255/4.583, allocations: 12.85 MB / 0.5316 GB, free: 4.371 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Line_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Line.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1)