Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.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.Machines,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Machines",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.0009321/0.0009323, allocations: 173.6 kB / 16.07 MB, free: 5.727 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.334/1.334, allocations: 205.4 MB / 222.2 MB, free: 9 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.000707/0.000707, allocations: 92.34 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1606/0.1606, allocations: 38.08 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003451/0.0003452, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2431, allocations: 56.33 MB / 479.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.005463/0.2486, allocations: 5.555 MB / 485.3 MB, free: 5.52 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005456/0.2541, allocations: 4.145 MB / 489.4 MB, free: 2.637 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000662/0.2548, allocations: 30.25 kB / 489.5 MB, free: 2.625 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01046/0.2652, allocations: 4.541 MB / 494 MB, free: 1.473 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001173/0.2664, allocations: 372.4 kB / 494.4 MB, free: 1.277 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008435/0.2673, allocations: 255.5 kB / 494.6 MB, free: 1.16 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002542/0.2698, allocations: 1.81 MB / 496.4 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008603/0.2707, allocations: 0.5322 MB / 497 MB, free: 244 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005686/0.2713, allocations: 323.5 kB / 497.3 MB, free: 72 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007715/0.2721, allocations: 431 kB / 497.7 MB, free: 15.84 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001194/0.2722, allocations: 24.09 kB / 497.7 MB, free: 15.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003845/0.2726, allocations: 110.7 kB / 497.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000311/0.2729, allocations: 252.1 kB / 498.1 MB, free: 15.64 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000445/0.2734, allocations: 308.7 kB / 498.4 MB, free: 15.43 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006206/0.274, allocations: 0.5517 MB / 498.9 MB, free: 15.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.274, allocations: 3.984 kB / 498.9 MB, free: 15.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.274, allocations: 1.156 kB / 498.9 MB, free: 15.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.602e-05/0.2741, allocations: 7.938 kB / 498.9 MB, free: 15.06 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001654/0.2757, allocations: 0.7931 MB / 499.7 MB, free: 14.39 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.2758, allocations: 9.875 kB / 499.7 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001564/0.2759, allocations: 95.69 kB / 499.8 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004848/0.2764, allocations: 91.38 kB / 499.9 MB, free: 14.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.2775, allocations: 0.5306 MB / 0.4887 GB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.593e-05/0.2775, allocations: 36.47 kB / 0.4888 GB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.841e-05/0.2776, allocations: 51.11 kB / 0.4888 GB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/0.2786, allocations: 0.6494 MB / 0.4894 GB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.2787, allocations: 6.438 kB / 0.4894 GB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.734e-05/0.2787, allocations: 23.64 kB / 0.4895 GB, free: 13.33 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001368/0.2789, allocations: 47.34 kB / 0.4895 GB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008019/0.2797, allocations: 498.7 kB / 0.49 GB, free: 13.08 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003391/0.2831, allocations: 2.536 MB / 0.4925 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004745/0.2836, allocations: 315.9 kB / 0.4928 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002564/0.2838, allocations: 183 kB / 0.4929 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.2839, allocations: 3.469 kB / 0.4929 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.2839, allocations: 42.16 kB / 0.493 GB, free: 10.65 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 1.723e-06/0.2839, allocations: 3.938 kB / 0.493 GB, free: 10.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.002453/0.2864, allocations: 1.624 MB / 0.4946 GB, free: 9.395 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/0.2864, allocations: 112 kB / 0.4947 GB, free: 9.266 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004404/0.2869, allocations: 426.6 kB / 0.4951 GB, free: 9.008 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.2869, allocations: 31.08 kB / 0.4951 GB, free: 8.973 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/0.2871, allocations: 304.7 kB / 0.4954 GB, free: 8.699 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.945e-05/0.2872, allocations: 126.7 kB / 0.4955 GB, free: 8.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.406e-05/0.2872, allocations: 9.375 kB / 0.4955 GB, free: 8.582 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.2874, allocations: 363.1 kB / 0.4959 GB, free: 8.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.2876, allocations: 167.8 kB / 0.496 GB, free: 8.148 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003353/0.288, allocations: 297.9 kB / 0.4963 GB, free: 7.895 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006043/0.2886, allocations: 489.6 kB / 0.4968 GB, free: 7.543 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2886, allocations: 1.344 kB / 0.4968 GB, free: 7.543 MB / 330.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001336/0.2899, allocations: 0.7908 MB / 0.4976 GB, free: 7.055 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.29, allocations: 7.281 kB / 0.4976 GB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.29, allocations: 8.125 kB / 0.4976 GB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007689/0.2908, allocations: 207.4 kB / 0.4978 GB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003635/0.2911, allocations: 70.39 kB / 0.4979 GB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004447/0.2956, allocations: 3.887 MB / 0.5016 GB, free: 3.473 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003144/0.2959, allocations: 19.98 kB / 0.5017 GB, free: 3.453 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.592e-05/0.296, allocations: 20 kB / 0.5017 GB, free: 3.434 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003044/0.2963, allocations: 229.6 kB / 0.5019 GB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.2964, allocations: 47.44 kB / 0.5019 GB, free: 3.152 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008715/0.2973, allocations: 0.6333 MB / 0.5026 GB, free: 2.473 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.2973, allocations: 7.984 kB / 0.5026 GB, free: 2.465 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.2973, allocations: 7.984 kB / 0.5026 GB, free: 2.457 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.2973, allocations: 3.938 kB / 0.5026 GB, free: 2.453 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001609/0.2989, allocations: 1.199 MB / 0.5038 GB, free: 1.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.299, allocations: 0 / 0.5038 GB, free: 1.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004358/0.2994, allocations: 75.89 kB / 0.5038 GB, free: 1.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001475/0.2996, allocations: 61.61 kB / 0.5039 GB, free: 1.008 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.229e-05/0.2996, allocations: 12 kB / 0.5039 GB, free: 0.9961 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001683/0.3013, allocations: 2.626 MB / 0.5065 GB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3013, allocations: 3.984 kB / 0.5065 GB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.3023, allocations: 0.9607 MB / 0.5074 GB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/0.3025, allocations: 148.5 kB / 0.5075 GB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.832e-05/0.3026, allocations: 12 kB / 0.5076 GB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.3029, allocations: 11.98 kB / 0.5076 GB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.526e-05/0.303, allocations: 23.97 kB / 0.5076 GB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.303, allocations: 11.98 kB / 0.5076 GB, free: 12.84 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002769/0.3033, allocations: 295.1 kB / 0.5079 GB, free: 12.55 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3033, allocations: 0 / 0.5079 GB, free: 12.55 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005797/0.3039, allocations: 132 kB / 0.508 GB, free: 12.42 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * 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 (35): * Single equations (assignments): 32 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001257/0.3051, allocations: 1.502 MB / 0.5095 GB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001138/0.3063, allocations: 0.7203 MB / 0.5102 GB, free: 10.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.3063, allocations: 0 / 0.5102 GB, free: 10.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004969/0.3068, allocations: 429.3 kB / 0.5106 GB, free: 9.645 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007546/0.3076, allocations: 110.6 kB / 0.5107 GB, free: 9.539 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005358/0.3129, allocations: 4.061 MB / 0.5147 GB, free: 5.336 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004736/0.3134, allocations: 0.9327 MB / 0.5156 GB, free: 4.379 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002676/0.3137, allocations: 203.4 kB / 0.5158 GB, free: 4.18 MB / 346.7 MB Notification: Performance of SimCode: time 3.31e-07/0.3137, allocations: 0 / 0.5158 GB, free: 4.18 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.803/4.116, allocations: 13.02 MB / 0.5285 GB, free: 7.133 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1)