Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 112.5 kB / 17.68 MB, free: 5.496 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.001116/0.001116, allocations: 190.9 kB / 18.62 MB, free: 4.562 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.487/1.487, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2125/0.2125, allocations: 37.99 MB / 309.8 MB, free: 5.965 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.001517/0.001517, allocations: 63.91 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2108, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005062/0.2159, allocations: 5.264 MB / 437.3 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00168/0.2176, allocations: 1.613 MB / 438.9 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.2178, allocations: 19.88 kB / 438.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003128/0.2181, allocations: 119 kB / 439 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005534/0.2187, allocations: 326.1 kB / 439.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.219, allocations: 151.8 kB / 439.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005642/0.2196, allocations: 0.6889 MB / 440.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003658/0.22, allocations: 443.7 kB / 440.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.2202, allocations: 286.9 kB / 440.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/0.2205, allocations: 286.9 kB / 441.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.758e-05/0.2206, allocations: 44 kB / 441.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.182e-05/0.2206, allocations: 48 kB / 441.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.2208, allocations: 159.5 kB / 441.4 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.2209, allocations: 270.7 kB / 441.7 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004226/0.2214, allocations: 0.5918 MB / 442.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.2214, allocations: 0 / 442.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2214, allocations: 0 / 442.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.2214, allocations: 0 / 442.3 MB, free: 9.199 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.00107/0.2225, allocations: 0.7892 MB / 443.1 MB, free: 8.359 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.2225, allocations: 11.89 kB / 443.1 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.886e-05/0.2226, allocations: 52.38 kB / 443.1 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005828/0.2232, allocations: 459.9 kB / 443.6 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.367e-05/0.2233, allocations: 66.64 kB / 443.6 MB, free: 7.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.137e-05/0.2233, allocations: 55.92 kB / 443.7 MB, free: 7.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005963/0.2239, allocations: 0.4969 MB / 444.2 MB, free: 7.152 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.224, allocations: 4 kB / 444.2 MB, free: 7.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.224, allocations: 20 kB / 444.2 MB, free: 7.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.224, allocations: 8 kB / 444.2 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004935/0.2245, allocations: 339.7 kB / 444.6 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.2262, allocations: 1.972 MB / 446.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00035/0.2265, allocations: 215.6 kB / 446.7 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.2267, allocations: 98.66 kB / 446.8 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.2267, allocations: 0 / 446.8 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.2267, allocations: 50.48 kB / 446.9 MB, free: 4.301 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.162e-06/0.2267, allocations: 0 / 446.9 MB, free: 4.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001493/0.2282, allocations: 0.8272 MB / 447.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.2283, allocations: 106.8 kB / 447.8 MB, free: 3.285 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.2285, allocations: 333.6 kB / 448.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.2286, allocations: 29.95 kB / 448.2 MB, free: 2.914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.2287, allocations: 275.5 kB / 448.4 MB, free: 2.641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.115e-05/0.2287, allocations: 82.84 kB / 448.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.405e-05/0.2288, allocations: 69.59 kB / 448.6 MB, free: 2.484 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.444e-05/0.2289, allocations: 346.8 kB / 448.9 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002847/0.2292, allocations: 79.95 kB / 449 MB, free: 2.059 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003273/0.2295, allocations: 224.6 kB / 449.2 MB, free: 1.777 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.2305, allocations: 0.5756 MB / 449.8 MB, free: 1.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2305, allocations: 0 / 449.8 MB, free: 1.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007342/0.2313, allocations: 410.5 kB / 450.2 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.2313, allocations: 8.938 kB / 450.2 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2313, allocations: 4 kB / 450.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003292/0.2317, allocations: 81.09 kB / 450.3 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.2319, allocations: 71.84 kB / 450.4 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00184/0.2338, allocations: 1.924 MB / 452.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001913/0.234, allocations: 12 kB / 452.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.234, allocations: 16 kB / 452.3 MB, free: 14.45 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002108/0.2342, allocations: 201.7 kB / 452.5 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.039e-05/0.2343, allocations: 39.53 kB / 452.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.239e-05/0.2344, allocations: 39.25 kB / 452.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.2344, allocations: 4 kB / 452.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2344, allocations: 0 / 452.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.2344, allocations: 3.984 kB / 452.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.2356, allocations: 0.7767 MB / 453.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.2356, allocations: 0 / 453.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.2359, allocations: 47.91 kB / 453.4 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.999e-05/0.236, allocations: 20.84 kB / 453.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/0.236, allocations: 12.06 kB / 453.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/0.2372, allocations: 1.382 MB / 454.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2373, allocations: 0 / 454.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007684/0.238, allocations: 0.5086 MB / 455.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002233/0.2383, allocations: 120.8 kB / 455.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.781e-05/0.2383, allocations: 4 kB / 455.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001923/0.2385, allocations: 4 kB / 455.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-05/0.2386, allocations: 19.97 kB / 455.5 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.2386, allocations: 12 kB / 455.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003515/0.239, allocations: 227.2 kB / 455.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.239, allocations: 0 / 455.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005849/0.2396, allocations: 88 kB / 455.8 MB, free: 10.68 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001154/0.2397, allocations: 111.1 kB / 455.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007482/0.2405, allocations: 379.1 kB / 456.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2405, allocations: 0 / 456.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003507/0.2408, allocations: 210.6 kB / 456.5 MB, free: 9.961 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006564/0.2415, allocations: 110.5 kB / 456.6 MB, free: 9.863 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.2432, allocations: 0.9167 MB / 457.5 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.2436, allocations: 0.8426 MB / 458.4 MB, free: 8.043 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001624/0.2438, allocations: 59.23 kB / 458.4 MB, free: 7.984 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.025e-05/0.2439, allocations: 31.44 kB / 458.5 MB, free: 7.953 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2439, allocations: 0 / 458.5 MB, free: 7.953 MB / 334.1 MB Notification: Performance of Templates: time 0.008343/0.2522, allocations: 4.497 MB / 462.9 MB, free: 3.477 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)