Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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.0008049/0.0008049, allocations: 91.86 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.0008838/0.0008841, allocations: 182.8 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.342/1.342, allocations: 205.4 MB / 223.7 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.1704/0.1704, allocations: 38.07 MB / 310.1 MB, free: 5.895 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.0005116/0.0005116, allocations: 19.28 kB / 377.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.215, allocations: 56.32 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.004177/0.2193, allocations: 4.787 MB / 438.4 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.2209, allocations: 1.71 MB / 440.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002287/0.2212, allocations: 27.81 kB / 440.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003455/0.2215, allocations: 99.34 kB / 440.2 MB, free: 12 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000436/0.222, allocations: 250.6 kB / 440.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001915/0.2222, allocations: 99.89 kB / 440.5 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005389/0.2227, allocations: 0.6384 MB / 441.2 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.2229, allocations: 127.5 kB / 441.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/0.2231, allocations: 163.2 kB / 441.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.2233, allocations: 207.1 kB / 441.7 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.844e-05/0.2234, allocations: 12 kB / 441.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.982e-05/0.2234, allocations: 16 kB / 441.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.666e-05/0.2235, allocations: 91.64 kB / 441.8 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.2236, allocations: 192.8 kB / 442 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.2239, allocations: 358.5 kB / 442.3 MB, free: 9.863 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2239, allocations: 0 / 442.3 MB, free: 9.863 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.2239, allocations: 4 kB / 442.3 MB, free: 9.859 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.2239, allocations: 7.875 kB / 442.3 MB, free: 9.852 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0007516/0.2246, allocations: 0.5855 MB / 442.9 MB, free: 9.219 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.2247, allocations: 12.03 kB / 442.9 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.114e-05/0.2247, allocations: 58.73 kB / 443 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.446e-05/0.2248, allocations: 52.45 kB / 443 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.2252, allocations: 387.3 kB / 443.4 MB, free: 8.672 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.2253, allocations: 16.56 kB / 443.4 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.419e-05/0.2253, allocations: 28 kB / 443.5 MB, free: 8.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003783/0.2257, allocations: 342.2 kB / 443.8 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.2257, allocations: 3.938 kB / 443.8 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.2258, allocations: 15.94 kB / 443.8 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.2258, allocations: 4 kB / 443.8 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002637/0.2261, allocations: 205.5 kB / 444 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.2271, allocations: 1.49 MB / 445.5 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003156/0.2274, allocations: 198.3 kB / 445.7 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.033e-05/0.2275, allocations: 78.03 kB / 445.8 MB, free: 6.129 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.2276, allocations: 4 kB / 445.8 MB, free: 6.125 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.2276, allocations: 42.5 kB / 445.8 MB, free: 6.074 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.322e-06/0.2276, allocations: 0 / 445.8 MB, free: 6.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008415/0.2284, allocations: 0.6703 MB / 446.5 MB, free: 5.348 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.2285, allocations: 140.5 kB / 446.6 MB, free: 5.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.2287, allocations: 317.6 kB / 446.9 MB, free: 4.863 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.2287, allocations: 33.64 kB / 447 MB, free: 4.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.729e-05/0.2288, allocations: 219.7 kB / 447.2 MB, free: 4.602 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.2289, allocations: 67.47 kB / 447.3 MB, free: 4.535 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.2289, allocations: 33.7 kB / 447.3 MB, free: 4.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.232e-05/0.229, allocations: 338.8 kB / 447.6 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.649e-05/0.2291, allocations: 47.97 kB / 447.7 MB, free: 4.109 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.2292, allocations: 148.9 kB / 447.8 MB, free: 3.918 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/0.2294, allocations: 216.7 kB / 448 MB, free: 3.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2294, allocations: 4 kB / 448 MB, free: 3.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000287/0.2297, allocations: 256.9 kB / 448.3 MB, free: 3.398 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.2297, allocations: 4 kB / 448.3 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.2297, allocations: 4.438 kB / 448.3 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.2297, allocations: 11.94 kB / 448.3 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003169/0.23, allocations: 91.83 kB / 448.4 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005383/0.2306, allocations: 1.286 MB / 449.7 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.2307, allocations: 8 kB / 449.7 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.2308, allocations: 11.98 kB / 449.7 MB, free: 1.852 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001167/0.2309, allocations: 169.7 kB / 449.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.371e-05/0.231, allocations: 35.56 kB / 449.9 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002535/0.2312, allocations: 184.6 kB / 450.1 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.2312, allocations: 4 kB / 450.1 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-06/0.2312, allocations: 3.938 kB / 450.1 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2313, allocations: 4 kB / 450.1 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005781/0.2318, allocations: 0.5455 MB / 450.6 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2318, allocations: 4 kB / 450.6 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001987/0.2321, allocations: 39.97 kB / 450.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.2321, allocations: 8.031 kB / 450.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.2321, allocations: 4 kB / 450.7 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2321, allocations: 4 kB / 450.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2321, allocations: 0 / 450.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003193/0.2324, allocations: 0.4908 MB / 451.2 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.378e-05/0.2325, allocations: 108.7 kB / 451.3 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.102e-05/0.2325, allocations: 4.047 kB / 451.3 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.2327, allocations: 11.98 kB / 451.3 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.409e-05/0.2327, allocations: 7.984 kB / 451.3 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.2328, allocations: 11.94 kB / 451.3 MB, free: 108 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000176/0.2329, allocations: 219.2 kB / 451.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2329, allocations: 0 / 451.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003929/0.2333, allocations: 60 kB / 451.6 MB, free: 15.83 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * 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.000608/0.234, allocations: 1.032 MB / 452.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000316/0.2343, allocations: 156 kB / 452.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2343, allocations: 7.875 kB / 452.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.2344, allocations: 63.92 kB / 452.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007345/0.2351, allocations: 94.19 kB / 452.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00357/0.2387, allocations: 3.488 MB / 456.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.2391, allocations: 0.8068 MB / 457.2 MB, free: 9.957 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001718/0.2392, allocations: 42.95 kB / 457.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.2394, allocations: 119.4 kB / 457.4 MB, free: 9.801 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2394, allocations: 0 / 457.4 MB, free: 9.801 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01635/0.2558, allocations: 6.243 MB / 463.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/0.256, allocations: 196.6 kB / 463.8 MB, free: 3.352 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.046, allocations: 0 / 463.8 MB, free: 3.352 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)