Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line",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.0007885/0.0007883, allocations: 87.94 kB / 16.65 MB, free: 6.172 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.0009409/0.0009409, allocations: 180.9 kB / 17.56 MB, free: 5.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.4 MB / 223.7 MB, free: 13.06 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1649/0.1649, allocations: 38.06 MB / 310.1 MB, free: 5.914 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005057/0.0005057, allocations: 16 kB / 377.3 MB, free: 2.625 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.262, allocations: 56.33 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.005044/0.2671, allocations: 5.617 MB / 439.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003271/0.2704, allocations: 2.027 MB / 441.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005086/0.2709, allocations: 35.75 kB / 441.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004071/0.2713, allocations: 111.2 kB / 441.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006167/0.272, allocations: 278.8 kB / 441.7 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007336/0.2727, allocations: 327.5 kB / 442 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006815/0.2734, allocations: 1.08 MB / 443.1 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007188/0.2741, allocations: 0.6228 MB / 443.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002823/0.2744, allocations: 270.8 kB / 443.9 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004541/0.2749, allocations: 450.6 kB / 444.4 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.469e-05/0.2749, allocations: 28 kB / 444.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002563/0.2752, allocations: 159.7 kB / 444.6 MB, free: 7.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001763/0.2754, allocations: 255.3 kB / 444.8 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002132/0.2756, allocations: 324.1 kB / 445.1 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000519/0.2761, allocations: 0.7863 MB / 445.9 MB, free: 6.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2762, allocations: 0 / 445.9 MB, free: 6.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2762, allocations: 0 / 445.9 MB, free: 6.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.2762, allocations: 0 / 445.9 MB, free: 6.25 MB / 318.1 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.001257/0.2774, allocations: 0.8045 MB / 446.7 MB, free: 5.398 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.2775, allocations: 12.03 kB / 446.7 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.637e-05/0.2776, allocations: 94.7 kB / 446.8 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009065/0.2785, allocations: 136.1 kB / 447 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007495/0.2793, allocations: 0.5119 MB / 447.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.2793, allocations: 36.92 kB / 447.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003154/0.2796, allocations: 131.8 kB / 447.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009837/0.2806, allocations: 0.8587 MB / 448.5 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.2806, allocations: 4 kB / 448.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.59e-05/0.2807, allocations: 19.94 kB / 448.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004257/0.2811, allocations: 80.86 kB / 448.6 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007838/0.2819, allocations: 0.6205 MB / 449.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003612/0.2856, allocations: 3.788 MB / 453 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.2866, allocations: 0.5418 MB / 453.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004519/0.2871, allocations: 327 kB / 453.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.561e-05/0.2871, allocations: 8.375 kB / 453.9 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.2872, allocations: 39 kB / 453.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.024e-06/0.2872, allocations: 0 / 453.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002768/0.2899, allocations: 1.843 MB / 455.8 MB, free: 12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.29, allocations: 81.55 kB / 455.8 MB, free: 11.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004025/0.2904, allocations: 417.7 kB / 456.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.187e-05/0.2905, allocations: 33.7 kB / 456.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.2907, allocations: 327.6 kB / 456.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.2909, allocations: 201.2 kB / 456.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.291, allocations: 81.67 kB / 456.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.2911, allocations: 370.7 kB / 457.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005304/0.2917, allocations: 381.5 kB / 457.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006496/0.2923, allocations: 0.6018 MB / 458.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.2936, allocations: 1.061 MB / 459.3 MB, free: 8.234 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.2936, allocations: 0 / 459.3 MB, free: 8.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004301/0.2979, allocations: 2.011 MB / 461.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.298, allocations: 8 kB / 461.3 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/0.298, allocations: 11.94 kB / 461.3 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002403/0.3004, allocations: 0.9655 MB / 462.3 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004307/0.3009, allocations: 123.8 kB / 462.4 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009837/0.3107, allocations: 7.391 MB / 469.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005524/0.3113, allocations: 36.03 kB / 469.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.549e-05/0.3114, allocations: 40.06 kB / 469.9 MB, free: 13.35 MB / 350.1 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 (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,6,100.0%), (23,12,23.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003804/0.3118, allocations: 257.4 kB / 470.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-05/0.3119, allocations: 51.38 kB / 470.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.3131, allocations: 0.7335 MB / 470.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.3131, allocations: 4 kB / 470.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3131, allocations: 4 kB / 470.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.3131, allocations: 0 / 470.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002402/0.3155, allocations: 1.524 MB / 472.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3155, allocations: 3.938 kB / 472.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009836/0.3165, allocations: 183.9 kB / 472.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.3165, allocations: 4 kB / 472.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.91e-05/0.3166, allocations: 35.97 kB / 472.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.3166, allocations: 4 kB / 472.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3166, allocations: 0 / 472.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.3179, allocations: 0.9969 MB / 473.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.318, allocations: 120.5 kB / 473.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.922e-05/0.3181, allocations: 27.98 kB / 473.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00032/0.3185, allocations: 27.97 kB / 473.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.129e-05/0.3185, allocations: 36.52 kB / 473.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/0.3186, allocations: 12 kB / 473.9 MB, free: 9.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002793/0.3189, allocations: 283.1 kB / 474.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.573e-06/0.3189, allocations: 0 / 474.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008526/0.3197, allocations: 219.9 kB / 474.4 MB, free: 8.719 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001552/0.3213, allocations: 1.558 MB / 475.9 MB, free: 7.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002479/0.3238, allocations: 1.461 MB / 477.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.3238, allocations: 0 / 477.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004433/0.3243, allocations: 306.3 kB / 477.7 MB, free: 5.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007771/0.3251, allocations: 130.8 kB / 477.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/0.3406, allocations: 10.31 MB / 488.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005365/0.3412, allocations: 0.9882 MB / 489.1 MB, free: 9.578 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005631/0.3417, allocations: 200.6 kB / 489.3 MB, free: 9.379 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/0.3421, allocations: 231.4 kB / 489.5 MB, free: 9.152 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3421, allocations: 4 kB / 489.5 MB, free: 9.148 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03036/0.3724, allocations: 16.53 MB / 0.4942 GB, free: 8.633 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001762/0.3727, allocations: 209.2 kB / 0.4944 GB, free: 8.379 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.996/2.368, allocations: 0 / 0.4944 GB, free: 8.379 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1)