Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.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.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",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.001017/0.001017, allocations: 94.06 kB / 16.65 MB, free: 6.59 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.00113/0.001131, allocations: 181.3 kB / 17.56 MB, free: 6.203 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.513/1.513, allocations: 205.4 MB / 223.8 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1634/0.1634, allocations: 38.05 MB / 310.1 MB, free: 5.996 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.0004599/0.0004599, allocations: 12 kB / 377.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2507, allocations: 56.33 MB / 433.6 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.004015/0.2547, allocations: 4.819 MB / 438.4 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.2569, allocations: 1.766 MB / 440.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002033/0.2571, allocations: 23.81 kB / 440.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.2573, allocations: 59.55 kB / 440.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004727/0.2578, allocations: 254.9 kB / 440.5 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004804/0.2583, allocations: 223.6 kB / 440.7 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005774/0.2588, allocations: 0.9238 MB / 441.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006062/0.2595, allocations: 478.9 kB / 442.1 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002292/0.2597, allocations: 227 kB / 442.3 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000369/0.2601, allocations: 322.9 kB / 442.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.919e-05/0.2601, allocations: 20 kB / 442.7 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000227/0.2604, allocations: 131.8 kB / 442.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001505/0.2605, allocations: 211.4 kB / 443 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.2607, allocations: 244.5 kB / 443.2 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004088/0.2611, allocations: 0.5644 MB / 443.8 MB, free: 8.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2611, allocations: 12 kB / 443.8 MB, free: 8.363 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.2611, allocations: 0 / 443.8 MB, free: 8.363 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.271e-06/0.2611, allocations: 3.938 kB / 443.8 MB, free: 8.359 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001021/0.2622, allocations: 0.6764 MB / 444.5 MB, free: 7.637 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.2622, allocations: 12.03 kB / 444.5 MB, free: 7.625 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.093e-05/0.2623, allocations: 90.64 kB / 444.6 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007039/0.263, allocations: 92.22 kB / 444.7 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004695/0.2635, allocations: 392.1 kB / 445.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.2635, allocations: 33.3 kB / 445.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.2637, allocations: 59.83 kB / 445.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007116/0.2644, allocations: 0.6638 MB / 445.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.2644, allocations: 7.938 kB / 445.8 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.071e-05/0.2645, allocations: 15.98 kB / 445.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/0.2646, allocations: 52.97 kB / 445.9 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005915/0.2652, allocations: 491.5 kB / 446.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002426/0.2676, allocations: 3.148 MB / 449.5 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003571/0.268, allocations: 252.8 kB / 449.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.2682, allocations: 133.5 kB / 449.9 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.2682, allocations: 3.984 kB / 449.9 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.2682, allocations: 42.5 kB / 450 MB, free: 1.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.2682, allocations: 0 / 450 MB, free: 1.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001184/0.2694, allocations: 0.8934 MB / 450.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.2695, allocations: 89.03 kB / 450.9 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002558/0.2697, allocations: 324.4 kB / 451.3 MB, free: 492 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.2698, allocations: 33.7 kB / 451.3 MB, free: 452 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.2699, allocations: 283.1 kB / 451.6 MB, free: 164 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.636e-05/0.2699, allocations: 94.72 kB / 451.7 MB, free: 68 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.079e-05/0.27, allocations: 45.7 kB / 451.7 MB, free: 16 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.2702, allocations: 346.7 kB / 452 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.2704, allocations: 136.8 kB / 452.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003431/0.2708, allocations: 321.1 kB / 452.5 MB, free: 15.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005822/0.2713, allocations: 0.4931 MB / 453 MB, free: 14.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.2714, allocations: 4 kB / 453 MB, free: 14.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001056/0.2724, allocations: 0.5927 MB / 453.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.2724, allocations: 8 kB / 453.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006251/0.2731, allocations: 333.9 kB / 453.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004138/0.2735, allocations: 117.5 kB / 454 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.2738, allocations: 83.89 kB / 454.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002601/0.2764, allocations: 3.045 MB / 457.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.2767, allocations: 16 kB / 457.2 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.2767, allocations: 24 kB / 457.2 MB, free: 10.04 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (48): * Single equations (assignments): 46 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002454/0.277, allocations: 217.5 kB / 457.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.479e-05/0.277, allocations: 35.69 kB / 457.4 MB, free: 9.781 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004862/0.2775, allocations: 312.7 kB / 457.7 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2775, allocations: 4 kB / 457.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.2775, allocations: 0 / 457.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.2775, allocations: 0 / 457.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.2786, allocations: 0.8044 MB / 458.6 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2786, allocations: 0 / 458.6 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003038/0.2789, allocations: 71.83 kB / 458.6 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.2789, allocations: 0 / 458.6 MB, free: 8.523 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.2789, allocations: 8 kB / 458.6 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.279, allocations: 4 kB / 458.6 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.279, allocations: 3.938 kB / 458.6 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005935/0.2796, allocations: 0.5092 MB / 459.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.2797, allocations: 124.8 kB / 459.3 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/0.2797, allocations: 12 kB / 459.3 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.2799, allocations: 7.984 kB / 459.3 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.572e-05/0.28, allocations: 19.92 kB / 459.3 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.28, allocations: 11.98 kB / 459.3 MB, free: 7.781 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001988/0.2802, allocations: 227.1 kB / 459.5 MB, free: 7.562 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2802, allocations: 0 / 459.5 MB, free: 7.562 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004504/0.2806, allocations: 96 kB / 459.6 MB, free: 7.469 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (indYD.i[1],indYD.i[2],indYD.i[3]) * 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 (27): * Single equations (assignments): 26 * 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.0008912/0.2815, allocations: 1.054 MB / 460.7 MB, free: 6.379 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008638/0.2824, allocations: 0.5688 MB / 461.3 MB, free: 5.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2824, allocations: 0 / 461.3 MB, free: 5.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001715/0.2826, allocations: 127.7 kB / 461.4 MB, free: 5.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005139/0.2831, allocations: 65.84 kB / 461.4 MB, free: 5.598 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00507/0.2882, allocations: 4.33 MB / 465.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.2887, allocations: 0.8776 MB / 466.7 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003369/0.2891, allocations: 111.2 kB / 466.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.2893, allocations: 151.2 kB / 466.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of SimCode: time 1.212e-06/0.2893, allocations: 0 / 466.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01906/0.3084, allocations: 7.117 MB / 474 MB, free: 8.758 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/0.3086, allocations: 221.9 kB / 474.2 MB, free: 8.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/2.128, allocations: 0 / 474.2 MB, free: 8.5 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe 2>&1)