Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009782/0.0009782, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.001181/0.001181, allocations: 181.7 kB / 17.2 MB, free: 5.906 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.621/1.621, allocations: 205.4 MB / 223.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2868/0.2868, allocations: 38.05 MB / 309.7 MB, free: 9.051 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.000529/0.000529, allocations: 12 kB / 376.5 MB, free: 15.3 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1123, allocations: 56.34 MB / 432.8 MB, free: 6.852 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006858/0.1192, allocations: 5.377 MB / 438.2 MB, free: 1.449 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003638/0.1229, allocations: 2.11 MB / 440.3 MB, free: 15.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003787/0.1233, allocations: 31.75 kB / 440.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004139/0.1238, allocations: 147.1 kB / 440.5 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008109/0.1246, allocations: 374.8 kB / 440.8 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000512/0.1251, allocations: 203.6 kB / 441 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006919/0.1258, allocations: 498.9 kB / 441.5 MB, free: 14.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000425/0.1263, allocations: 362.2 kB / 441.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003455/0.1266, allocations: 270.9 kB / 442.2 MB, free: 13.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003101/0.1269, allocations: 235 kB / 442.4 MB, free: 13.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.097e-05/0.127, allocations: 28 kB / 442.4 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001504/0.1271, allocations: 59.92 kB / 442.5 MB, free: 13.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.1273, allocations: 139.6 kB / 442.6 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.1274, allocations: 133.4 kB / 442.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004735/0.1279, allocations: 0.5571 MB / 443.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.1279, allocations: 4 kB / 443.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1279, allocations: 4 kB / 443.3 MB, free: 12.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.565e-06/0.128, allocations: 0 / 443.3 MB, free: 12.31 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001335/0.1293, allocations: 0.8006 MB / 444.1 MB, free: 11.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.1293, allocations: 15.98 kB / 444.1 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.1295, allocations: 59.25 kB / 444.2 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007159/0.1302, allocations: 497.6 kB / 444.7 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.252e-05/0.1302, allocations: 32.95 kB / 444.7 MB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.292e-05/0.1303, allocations: 48 kB / 444.7 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006912/0.131, allocations: 0.5095 MB / 445.2 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.131, allocations: 4 kB / 445.3 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.238e-05/0.1311, allocations: 20 kB / 445.3 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.846e-05/0.1312, allocations: 20.94 kB / 445.3 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004796/0.1317, allocations: 335.6 kB / 445.6 MB, free: 9.863 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.134, allocations: 2.07 MB / 447.7 MB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003746/0.1344, allocations: 235.7 kB / 447.9 MB, free: 7.418 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.1344, allocations: 3.984 kB / 447.9 MB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000261/0.1347, allocations: 162.2 kB / 448.1 MB, free: 7.234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.373e-06/0.1347, allocations: 0 / 448.1 MB, free: 7.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001549/0.1362, allocations: 0.9253 MB / 449 MB, free: 6.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.1364, allocations: 136.5 kB / 449.1 MB, free: 6.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004523/0.1368, allocations: 425.9 kB / 449.6 MB, free: 5.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.1369, allocations: 33.7 kB / 449.6 MB, free: 5.621 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.137, allocations: 291.6 kB / 449.9 MB, free: 5.332 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.893e-05/0.1371, allocations: 91.09 kB / 450 MB, free: 5.242 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.68e-05/0.1372, allocations: 8 kB / 450 MB, free: 5.234 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1373, allocations: 358.8 kB / 450.3 MB, free: 4.875 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.1374, allocations: 76.84 kB / 450.4 MB, free: 4.801 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.1377, allocations: 225.4 kB / 450.6 MB, free: 4.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.1379, allocations: 112 kB / 450.7 MB, free: 4.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1379, allocations: 0 / 450.7 MB, free: 4.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007794/0.1387, allocations: 441.8 kB / 451.2 MB, free: 3.969 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.1387, allocations: 12.12 kB / 451.2 MB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.1387, allocations: 4 kB / 451.2 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003996/0.1391, allocations: 88.77 kB / 451.3 MB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.1394, allocations: 75.84 kB / 451.3 MB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002029/0.1414, allocations: 1.726 MB / 453.1 MB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002551/0.1417, allocations: 23.94 kB / 453.1 MB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.1417, allocations: 23.94 kB / 453.1 MB, free: 1.883 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002525/0.142, allocations: 201.7 kB / 453.3 MB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.543e-05/0.1421, allocations: 47.47 kB / 453.3 MB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005476/0.1426, allocations: 282.1 kB / 453.6 MB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.1426, allocations: 7.953 kB / 453.6 MB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.1426, allocations: 0 / 453.6 MB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.1426, allocations: 4 kB / 453.6 MB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/0.1438, allocations: 0.7761 MB / 454.4 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1438, allocations: 4 kB / 454.4 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002485/0.144, allocations: 47.97 kB / 454.5 MB, free: 456 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.1442, allocations: 40.81 kB / 454.5 MB, free: 412 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.1443, allocations: 8 kB / 454.5 MB, free: 404 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2121/0.3564, allocations: 1.446 MB / 456 MB, free: 50.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3564, allocations: 6.141 kB / 456 MB, free: 50.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007166/0.3571, allocations: 499.4 kB / 456.4 MB, free: 49.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001613/0.3573, allocations: 133 kB / 456.6 MB, free: 49.81 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.214e-05/0.3574, allocations: 9.219 kB / 456.6 MB, free: 49.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.3576, allocations: 22.5 kB / 456.6 MB, free: 49.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.738e-05/0.3577, allocations: 19.83 kB / 456.6 MB, free: 49.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.3577, allocations: 10.94 kB / 456.6 MB, free: 49.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003165/0.358, allocations: 292.6 kB / 456.9 MB, free: 49.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.358, allocations: 0 / 456.9 MB, free: 49.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005271/0.3586, allocations: 115.2 kB / 457 MB, free: 49.73 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.0008092/0.3594, allocations: 405.8 kB / 457.4 MB, free: 49.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006632/0.3601, allocations: 386.4 kB / 457.8 MB, free: 49.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3601, allocations: 0 / 457.8 MB, free: 49.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003023/0.3604, allocations: 235.8 kB / 458 MB, free: 49.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005541/0.3609, allocations: 122.7 kB / 458.2 MB, free: 49.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001655/0.3626, allocations: 1.483 MB / 459.6 MB, free: 48.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.3629, allocations: 0.8896 MB / 460.5 MB, free: 47.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002129/0.3631, allocations: 62.41 kB / 460.6 MB, free: 47.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.864e-05/0.3632, allocations: 38.52 kB / 460.6 MB, free: 47.8 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3632, allocations: 0 / 460.6 MB, free: 47.8 MB / 382.1 MB Notification: Performance of Templates: time 0.01032/0.3735, allocations: 5.903 MB / 466.5 MB, free: 47.3 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) Environment - environmentSimulation: