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.00108/0.00108, allocations: 94.48 kB / 16.3 MB, free: 6.461 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.001176/0.001176, allocations: 175.3 kB / 17.19 MB, free: 6.348 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.62/1.62, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.18/0.18, allocations: 38.04 MB / 309.7 MB, free: 6.129 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.0005292/0.0005294, allocations: 15.12 kB / 376.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2375, allocations: 56.33 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.00403/0.2416, allocations: 4.395 MB / 437.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.2436, allocations: 1.599 MB / 438.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000412/0.244, allocations: 27.81 kB / 438.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004032/0.2445, allocations: 111.4 kB / 439 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007595/0.2452, allocations: 283.1 kB / 439.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003232/0.2456, allocations: 123.8 kB / 439.4 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004398/0.246, allocations: 319.3 kB / 439.8 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.2462, allocations: 105.8 kB / 439.9 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.2464, allocations: 159.4 kB / 440 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.2466, allocations: 151.3 kB / 440.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.883e-05/0.2466, allocations: 16 kB / 440.2 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.861e-05/0.2467, allocations: 16 kB / 440.2 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.421e-05/0.2468, allocations: 87.72 kB / 440.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.135e-05/0.2468, allocations: 89.52 kB / 440.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001984/0.247, allocations: 283.2 kB / 440.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.247, allocations: 0 / 440.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.247, allocations: 0 / 440.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.126e-06/0.2471, allocations: 0 / 440.6 MB, free: 11.06 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.0007585/0.2478, allocations: 0.597 MB / 441.2 MB, free: 10.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.2479, allocations: 12.03 kB / 441.2 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.255e-05/0.2479, allocations: 62.53 kB / 441.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.334e-05/0.248, allocations: 43.48 kB / 441.4 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004564/0.2484, allocations: 370.6 kB / 441.7 MB, free: 9.891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.2485, allocations: 16.56 kB / 441.7 MB, free: 9.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.986e-05/0.2485, allocations: 36 kB / 441.8 MB, free: 9.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003522/0.2489, allocations: 326.2 kB / 442.1 MB, free: 9.484 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.2489, allocations: 7.922 kB / 442.1 MB, free: 9.477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.251e-05/0.2489, allocations: 16 kB / 442.1 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.2489, allocations: 11.95 kB / 442.1 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.2492, allocations: 205.5 kB / 442.3 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.2503, allocations: 1.482 MB / 443.8 MB, free: 7.668 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003115/0.2506, allocations: 202.3 kB / 444 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.2506, allocations: 0 / 444 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.2507, allocations: 42.56 kB / 444 MB, free: 7.383 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.653e-06/0.2507, allocations: 0 / 444 MB, free: 7.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008216/0.2515, allocations: 0.6819 MB / 444.7 MB, free: 6.645 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.2515, allocations: 132.5 kB / 444.9 MB, free: 6.484 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002054/0.2517, allocations: 313.7 kB / 445.2 MB, free: 6.172 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.2518, allocations: 29.64 kB / 445.2 MB, free: 6.137 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.805e-05/0.2519, allocations: 224.1 kB / 445.4 MB, free: 5.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.433e-05/0.2519, allocations: 67.08 kB / 445.5 MB, free: 5.844 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.127e-06/0.2519, allocations: 4 kB / 445.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.712e-05/0.252, allocations: 342.8 kB / 445.8 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.552e-05/0.2521, allocations: 55.91 kB / 445.9 MB, free: 5.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.925e-05/0.2522, allocations: 136.9 kB / 446 MB, free: 5.262 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.883e-05/0.2523, allocations: 75.92 kB / 446.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2523, allocations: 4 kB / 446.1 MB, free: 5.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002762/0.2526, allocations: 261.2 kB / 446.3 MB, free: 4.922 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.2526, allocations: 4 kB / 446.3 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.2526, allocations: 4 kB / 446.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.2526, allocations: 7.953 kB / 446.3 MB, free: 4.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003276/0.253, allocations: 79.89 kB / 446.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005547/0.2535, allocations: 1.286 MB / 447.7 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.2537, allocations: 8 kB / 447.7 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.2537, allocations: 16 kB / 447.7 MB, free: 3.383 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001242/0.2538, allocations: 166 kB / 447.9 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.009e-05/0.2539, allocations: 35.61 kB / 447.9 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002525/0.2542, allocations: 192.3 kB / 448.1 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2542, allocations: 4 kB / 448.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.2542, allocations: 0 / 448.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.2542, allocations: 4 kB / 448.1 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005839/0.2548, allocations: 0.5335 MB / 448.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2548, allocations: 4 kB / 448.7 MB, free: 2.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002222/0.255, allocations: 51.86 kB / 448.7 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.255, allocations: 4 kB / 448.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.255, allocations: 0 / 448.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.2551, allocations: 8 kB / 448.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2551, allocations: 0 / 448.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003481/0.2554, allocations: 0.5196 MB / 449.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.422e-05/0.2555, allocations: 104.6 kB / 449.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.403e-05/0.2555, allocations: 15.97 kB / 449.4 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.2557, allocations: 3.938 kB / 449.4 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.71e-05/0.2557, allocations: 19.98 kB / 449.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.2558, allocations: 4 kB / 449.4 MB, free: 1.59 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001499/0.2559, allocations: 219.2 kB / 449.6 MB, free: 1.379 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2559, allocations: 0 / 449.6 MB, free: 1.379 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003765/0.2563, allocations: 59.95 kB / 449.7 MB, free: 1.32 MB / 318.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 (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.0004997/0.2568, allocations: 1.271 MB / 450.9 MB, free: 8 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00035/0.2572, allocations: 160.2 kB / 451.1 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2572, allocations: 0 / 451.1 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.2573, allocations: 63.92 kB / 451.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005364/0.2578, allocations: 82.98 kB / 451.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003931/0.2618, allocations: 4.172 MB / 455.4 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.2622, allocations: 0.8148 MB / 456.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001951/0.2624, allocations: 50.92 kB / 456.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.2626, allocations: 111.4 kB / 456.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2626, allocations: 4 kB / 456.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.2831, allocations: 6.181 MB / 462.6 MB, free: 4.293 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002325/0.2834, allocations: 176.9 kB / 462.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.678/1.962, allocations: 0 / 462.7 MB, free: 4.055 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/linux/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) Environment - environmentSimulation: