Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 173.9 kB / 16.07 MB, free: 5.723 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.257/1.257, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.000814/0.000814, allocations: 85.25 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1712/0.1712, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.000356, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2273, allocations: 56.32 MB / 479.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.005467/0.2328, allocations: 5.165 MB / 484.8 MB, free: 5.859 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003071/0.2359, allocations: 2.009 MB / 486.8 MB, free: 4.422 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005927/0.2365, allocations: 27.34 kB / 486.8 MB, free: 4.41 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006058/0.2371, allocations: 139.8 kB / 487 MB, free: 4.344 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001228/0.2384, allocations: 356.4 kB / 487.3 MB, free: 4.141 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000662/0.2391, allocations: 182 kB / 487.5 MB, free: 4.051 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001093/0.2402, allocations: 0.7171 MB / 488.2 MB, free: 3.734 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005785/0.2408, allocations: 343.4 kB / 488.5 MB, free: 3.605 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005393/0.2413, allocations: 246.4 kB / 488.8 MB, free: 3.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005033/0.2418, allocations: 259.8 kB / 489 MB, free: 3.398 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.2419, allocations: 23.31 kB / 489.1 MB, free: 3.398 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002713/0.2422, allocations: 68.17 kB / 489.1 MB, free: 3.383 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001677/0.2424, allocations: 122.1 kB / 489.2 MB, free: 3.332 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003291/0.2427, allocations: 248.9 kB / 489.5 MB, free: 3.176 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006743/0.2434, allocations: 0.4961 MB / 490 MB, free: 3.047 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.2434, allocations: 0 / 490 MB, free: 3.047 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2434, allocations: 0 / 490 MB, free: 3.047 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.518e-05/0.2435, allocations: 9 kB / 490 MB, free: 3.039 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001546/0.245, allocations: 0.7502 MB / 490.7 MB, free: 2.473 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.2451, allocations: 9.625 kB / 490.8 MB, free: 2.473 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.2452, allocations: 58.41 kB / 490.8 MB, free: 2.441 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008087/0.2461, allocations: 466 kB / 491.3 MB, free: 2.102 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.56e-05/0.2461, allocations: 28.12 kB / 491.3 MB, free: 2.086 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.501e-05/0.2462, allocations: 37.41 kB / 491.3 MB, free: 2.074 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007499/0.2469, allocations: 454.1 kB / 491.8 MB, free: 1.816 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.247, allocations: 1.594 kB / 491.8 MB, free: 1.816 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.203e-05/0.247, allocations: 20.91 kB / 491.8 MB, free: 1.801 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.247, allocations: 9.031 kB / 491.8 MB, free: 1.801 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005147/0.2476, allocations: 276.3 kB / 492.1 MB, free: 1.707 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.2496, allocations: 1.871 MB / 493.9 MB, free: 256 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004804/0.2501, allocations: 245.5 kB / 494.2 MB, free: 116 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.2502, allocations: 86.89 kB / 494.3 MB, free: 64 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.2503, allocations: 10.75 kB / 494.3 MB, free: 56 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002901/0.2506, allocations: 172.1 kB / 494.4 MB, free: 15.94 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 2.094e-06/0.2506, allocations: 0 / 494.4 MB, free: 15.94 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.001786/0.2524, allocations: 0.9092 MB / 495.4 MB, free: 15.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.446e-05/0.2525, allocations: 137.7 kB / 495.5 MB, free: 15.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005117/0.253, allocations: 396.5 kB / 495.9 MB, free: 14.97 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.054e-05/0.253, allocations: 31.67 kB / 495.9 MB, free: 14.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/0.2532, allocations: 261.1 kB / 496.2 MB, free: 14.72 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.455e-05/0.2533, allocations: 102.6 kB / 496.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.827e-05/0.2534, allocations: 5.344 kB / 496.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2535, allocations: 353.7 kB / 496.6 MB, free: 14.31 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.2537, allocations: 81 kB / 496.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002707/0.254, allocations: 208.8 kB / 496.9 MB, free: 14.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004521/0.2544, allocations: 317.7 kB / 497.2 MB, free: 13.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.2544, allocations: 1.344 kB / 497.2 MB, free: 13.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009248/0.2554, allocations: 431.4 kB / 497.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.2554, allocations: 7.625 kB / 497.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.2554, allocations: 8.031 kB / 497.6 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004311/0.2559, allocations: 92.42 kB / 497.7 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002459/0.2561, allocations: 62.91 kB / 497.8 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002259/0.2584, allocations: 1.833 MB / 499.6 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000301/0.2587, allocations: 19.62 kB / 499.6 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.822e-05/0.2588, allocations: 18.77 kB / 499.7 MB, free: 12 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002733/0.259, allocations: 197.7 kB / 499.9 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.921e-05/0.2591, allocations: 48.33 kB / 499.9 MB, free: 11.81 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006497/0.2598, allocations: 290.8 kB / 0.4885 GB, free: 11.67 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.2598, allocations: 3.938 kB / 0.4885 GB, free: 11.67 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.868e-06/0.2598, allocations: 5 kB / 0.4885 GB, free: 11.67 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.2598, allocations: 2.688 kB / 0.4885 GB, free: 11.67 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001238/0.2611, allocations: 0.7693 MB / 0.4892 GB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.2611, allocations: 1.953 kB / 0.4892 GB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000238/0.2614, allocations: 43.94 kB / 0.4893 GB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002121/0.2616, allocations: 49.31 kB / 0.4893 GB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.982e-05/0.2616, allocations: 12.02 kB / 0.4893 GB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001255/0.2629, allocations: 1.436 MB / 0.4907 GB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2629, allocations: 1 kB / 0.4907 GB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008136/0.2637, allocations: 0.4979 MB / 0.4912 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.2639, allocations: 136.3 kB / 0.4914 GB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.796e-05/0.264, allocations: 7.469 kB / 0.4914 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.2642, allocations: 15.58 kB / 0.4914 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.616e-05/0.2643, allocations: 27.61 kB / 0.4914 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.2643, allocations: 6.875 kB / 0.4914 GB, free: 9.305 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003807/0.2647, allocations: 282.4 kB / 0.4917 GB, free: 9.16 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2647, allocations: 0 / 0.4917 GB, free: 9.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005873/0.2653, allocations: 103.3 kB / 0.4918 GB, free: 9.148 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009481/0.2663, allocations: 403 kB / 0.4922 GB, free: 8.859 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009101/0.2672, allocations: 401.1 kB / 0.4925 GB, free: 8.648 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2672, allocations: 0 / 0.4925 GB, free: 8.648 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004402/0.2677, allocations: 244.7 kB / 0.4928 GB, free: 8.496 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007894/0.2685, allocations: 115.7 kB / 0.4929 GB, free: 8.461 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002138/0.2706, allocations: 1.399 MB / 0.4943 GB, free: 7.469 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/0.2711, allocations: 0.8507 MB / 0.4951 GB, free: 6.695 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.2712, allocations: 33.94 kB / 0.4951 GB, free: 6.688 MB / 330.7 MB Notification: Performance of SimCode: time 6.11e-07/0.2712, allocations: 0 / 0.4951 GB, free: 6.688 MB / 330.7 MB Notification: Performance of Templates: time 0.01367/0.2849, allocations: 8.134 MB / 0.5031 GB, free: 1.953 MB / 330.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)