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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008682/0.0008683, allocations: 89.22 kB / 16.31 MB, free: 5.676 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.0009105/0.0009106, allocations: 185.5 kB / 17.21 MB, free: 5.594 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.325/1.325, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1691/0.1691, allocations: 38.05 MB / 309.7 MB, free: 6.035 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.0004764/0.0004765, allocations: 16 kB / 376.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.2349, allocations: 56.32 MB / 432.8 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.003849/0.2388, allocations: 4.583 MB / 437.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001664/0.2405, allocations: 1.618 MB / 439 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002591/0.2408, allocations: 27.81 kB / 439.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003162/0.2411, allocations: 99.28 kB / 439.2 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005191/0.2416, allocations: 302.3 kB / 439.4 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002409/0.2419, allocations: 115.8 kB / 439.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004926/0.2424, allocations: 0.537 MB / 440.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.2425, allocations: 109.8 kB / 440.2 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.2427, allocations: 171.2 kB / 440.4 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.243, allocations: 199.2 kB / 440.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.243, allocations: 12 kB / 440.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.899e-05/0.243, allocations: 16 kB / 440.6 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.708e-05/0.2431, allocations: 87.7 kB / 440.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.769e-05/0.2432, allocations: 93.45 kB / 440.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001863/0.2434, allocations: 283.3 kB / 441 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.2434, allocations: 4 kB / 441.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2434, allocations: 0 / 441.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.2434, allocations: 0 / 441.1 MB, free: 10.57 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.000718/0.2441, allocations: 0.593 MB / 441.6 MB, free: 9.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.934e-05/0.2442, allocations: 8.031 kB / 441.7 MB, free: 9.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.846e-05/0.2442, allocations: 47.42 kB / 441.7 MB, free: 9.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004115/0.2447, allocations: 370.7 kB / 442.1 MB, free: 9.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.2447, allocations: 24.56 kB / 442.1 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.107e-05/0.2447, allocations: 24 kB / 442.1 MB, free: 9.434 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/0.2451, allocations: 338.2 kB / 442.4 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.2451, allocations: 0 / 442.4 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.257e-05/0.2452, allocations: 12 kB / 442.5 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.2452, allocations: 4 kB / 442.5 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002562/0.2454, allocations: 209.5 kB / 442.7 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001041/0.2465, allocations: 1.49 MB / 444.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.2468, allocations: 206.3 kB / 444.4 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.389e-05/0.2469, allocations: 77.8 kB / 444.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.2469, allocations: 7.938 kB / 444.4 MB, free: 6.926 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/0.2469, allocations: 38.55 kB / 444.5 MB, free: 6.879 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.342e-06/0.2469, allocations: 0 / 444.5 MB, free: 6.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008091/0.2478, allocations: 0.6781 MB / 445.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.2478, allocations: 140.8 kB / 445.3 MB, free: 5.977 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.248, allocations: 313.7 kB / 445.6 MB, free: 5.664 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.248, allocations: 25.7 kB / 445.6 MB, free: 5.633 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.698e-05/0.2481, allocations: 219.7 kB / 445.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.414e-05/0.2482, allocations: 67.09 kB / 445.9 MB, free: 5.344 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.757e-06/0.2482, allocations: 4 kB / 445.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.019e-05/0.2482, allocations: 342.8 kB / 446.2 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.348e-05/0.2483, allocations: 51.97 kB / 446.3 MB, free: 4.945 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.396e-05/0.2484, allocations: 137 kB / 446.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.997e-05/0.2485, allocations: 83.86 kB / 446.5 MB, free: 4.684 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2485, allocations: 0 / 446.5 MB, free: 4.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002783/0.2488, allocations: 256.9 kB / 446.8 MB, free: 4.426 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.2488, allocations: 4 kB / 446.8 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.2489, allocations: 4 kB / 446.8 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.2489, allocations: 11.95 kB / 446.8 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/0.2492, allocations: 80.33 kB / 446.9 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004793/0.2497, allocations: 1.282 MB / 448.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.2498, allocations: 8 kB / 448.1 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.2498, allocations: 16 kB / 448.2 MB, free: 2.887 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.0001122/0.2499, allocations: 169.6 kB / 448.3 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/0.25, allocations: 31.62 kB / 448.4 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002457/0.2503, allocations: 188.3 kB / 448.5 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.2503, allocations: 12.09 kB / 448.6 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.2503, allocations: 4 kB / 448.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.2503, allocations: 4 kB / 448.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005407/0.2509, allocations: 0.5296 MB / 449.1 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2509, allocations: 4 kB / 449.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/0.2511, allocations: 51.86 kB / 449.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2511, allocations: 3.938 kB / 449.1 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.2511, allocations: 4 kB / 449.2 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.2511, allocations: 4 kB / 449.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2511, allocations: 4 kB / 449.2 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/0.2514, allocations: 498.8 kB / 449.6 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.168e-05/0.2515, allocations: 104.6 kB / 449.7 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.2515, allocations: 11.95 kB / 449.8 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001881/0.2517, allocations: 8 kB / 449.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.638e-05/0.2517, allocations: 16.02 kB / 449.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.2518, allocations: 4 kB / 449.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001426/0.2519, allocations: 219.2 kB / 450 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2519, allocations: 0 / 450 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003766/0.2523, allocations: 60 kB / 450.1 MB, free: 0.8711 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 6.99e-05/0.2524, allocations: 99.72 kB / 450.2 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000283/0.2527, allocations: 160.1 kB / 450.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2527, allocations: 0 / 450.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.627e-05/0.2528, allocations: 68.19 kB / 450.4 MB, free: 0.543 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000635/0.2534, allocations: 86.67 kB / 450.5 MB, free: 468 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.2547, allocations: 1.009 MB / 451.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.2551, allocations: 0.8031 MB / 452.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001868/0.2553, allocations: 50.94 kB / 452.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.944e-05/0.2553, allocations: 27.42 kB / 452.4 MB, free: 14.51 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2554, allocations: 4 kB / 452.4 MB, free: 14.5 MB / 334.1 MB Notification: Performance of Templates: time 0.006048/0.2614, allocations: 2.952 MB / 455.3 MB, free: 11.57 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile Environment - environmentSimulation: (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 & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) Environment - environmentSimulation: