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.001147/0.001147, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.001883/0.001883, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.345/1.345, allocations: 205.4 MB / 223.4 MB, free: 5.301 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2995/0.2995, allocations: 38.06 MB / 309.7 MB, free: 9.012 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.0004765/0.0004766, allocations: 19.98 kB / 376.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1113, allocations: 56.34 MB / 432.9 MB, free: 6.691 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006016/0.1173, allocations: 5.593 MB / 438.4 MB, free: 1.074 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003631/0.121, allocations: 2.144 MB / 440.6 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004636/0.1215, allocations: 27.81 kB / 440.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005215/0.122, allocations: 155 kB / 440.8 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001075/0.1231, allocations: 397.8 kB / 441.2 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006194/0.1237, allocations: 203.7 kB / 441.4 MB, free: 14.15 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001009/0.1247, allocations: 0.8991 MB / 442.3 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004513/0.1252, allocations: 366.1 kB / 442.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004225/0.1256, allocations: 286.7 kB / 442.9 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003864/0.126, allocations: 310.8 kB / 443.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.003e-05/0.1261, allocations: 28 kB / 443.2 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001654/0.1263, allocations: 67.97 kB / 443.3 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.1264, allocations: 147.5 kB / 443.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.1266, allocations: 137.4 kB / 443.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005523/0.1272, allocations: 0.5688 MB / 444.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1272, allocations: 0 / 444.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1272, allocations: 0 / 444.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.1272, allocations: 0 / 444.1 MB, free: 11.34 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.001356/0.1286, allocations: 0.7967 MB / 444.9 MB, free: 10.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.1286, allocations: 11.98 kB / 444.9 MB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.66e-05/0.1287, allocations: 67.25 kB / 445 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006974/0.1294, allocations: 497.6 kB / 445.5 MB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.373e-05/0.1295, allocations: 36.95 kB / 445.5 MB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-05/0.1296, allocations: 47.98 kB / 445.6 MB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007151/0.1303, allocations: 0.5134 MB / 446.1 MB, free: 9.258 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.1303, allocations: 4 kB / 446.1 MB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.1304, allocations: 16 kB / 446.1 MB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.493e-05/0.1304, allocations: 20.98 kB / 446.1 MB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005004/0.1309, allocations: 331.6 kB / 446.5 MB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002316/0.1333, allocations: 2.07 MB / 448.5 MB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003827/0.1337, allocations: 239.6 kB / 448.8 MB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.1338, allocations: 86.61 kB / 448.8 MB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.1338, allocations: 8.219 kB / 448.9 MB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.1341, allocations: 166.2 kB / 449 MB, free: 6.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.1341, allocations: 0 / 449 MB, free: 6.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001539/0.1356, allocations: 0.925 MB / 449.9 MB, free: 5.176 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.381e-05/0.1358, allocations: 136.8 kB / 450.1 MB, free: 5.012 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000485/0.1363, allocations: 421.9 kB / 450.5 MB, free: 4.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.728e-05/0.1363, allocations: 29.7 kB / 450.5 MB, free: 4.555 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.1365, allocations: 299.6 kB / 450.8 MB, free: 4.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.59e-05/0.1366, allocations: 86.8 kB / 450.9 MB, free: 4.172 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.481e-05/0.1366, allocations: 4 kB / 450.9 MB, free: 4.168 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1367, allocations: 354.8 kB / 451.2 MB, free: 3.812 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.1369, allocations: 80.83 kB / 451.3 MB, free: 3.734 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.1371, allocations: 229.4 kB / 451.5 MB, free: 3.449 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/0.1373, allocations: 119.9 kB / 451.7 MB, free: 3.332 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1373, allocations: 4 kB / 451.7 MB, free: 3.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007537/0.138, allocations: 433.6 kB / 452.1 MB, free: 2.895 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.1381, allocations: 11.91 kB / 452.1 MB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.1381, allocations: 4 kB / 452.1 MB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003741/0.1385, allocations: 101 kB / 452.2 MB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.1387, allocations: 71.84 kB / 452.3 MB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.1405, allocations: 1.699 MB / 454 MB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002371/0.1408, allocations: 31.88 kB / 454 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.016e-05/0.1408, allocations: 16.06 kB / 454 MB, free: 0.8281 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.0002237/0.141, allocations: 213.6 kB / 454.2 MB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.56e-05/0.1411, allocations: 39.53 kB / 454.3 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005078/0.1416, allocations: 286 kB / 454.5 MB, free: 288 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.1416, allocations: 0 / 454.5 MB, free: 288 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1416, allocations: 4 kB / 454.6 MB, free: 284 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1416, allocations: 0 / 454.6 MB, free: 284 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1894/0.3311, allocations: 0.7739 MB / 455.3 MB, free: 50.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.3311, allocations: 3.281 kB / 455.3 MB, free: 50.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002582/0.3314, allocations: 38.45 kB / 455.4 MB, free: 50.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001975/0.3316, allocations: 53.52 kB / 455.4 MB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.3316, allocations: 6.531 kB / 455.4 MB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009295/0.3326, allocations: 1.436 MB / 456.9 MB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.3326, allocations: 0.5 kB / 456.9 MB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005875/0.3332, allocations: 478.3 kB / 457.3 MB, free: 49.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001223/0.3333, allocations: 141.6 kB / 457.5 MB, free: 49.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.849e-05/0.3334, allocations: 6.219 kB / 457.5 MB, free: 49.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.3336, allocations: 15.47 kB / 457.5 MB, free: 49.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.3337, allocations: 20.36 kB / 457.5 MB, free: 49.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.3337, allocations: 10.42 kB / 457.5 MB, free: 49.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002603/0.3339, allocations: 292.7 kB / 457.8 MB, free: 49.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.334, allocations: 6.125 kB / 457.8 MB, free: 49.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004913/0.3345, allocations: 116.5 kB / 457.9 MB, free: 49.29 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.0008541/0.3353, allocations: 396.1 kB / 458.3 MB, free: 49.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007219/0.336, allocations: 383.5 kB / 458.7 MB, free: 48.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3361, allocations: 3.438 kB / 458.7 MB, free: 48.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003143/0.3364, allocations: 239.7 kB / 458.9 MB, free: 48.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000647/0.337, allocations: 122.9 kB / 459 MB, free: 48.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.3386, allocations: 1.484 MB / 460.5 MB, free: 48.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.3389, allocations: 0.8838 MB / 461.4 MB, free: 47.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000221/0.3391, allocations: 65.8 kB / 461.5 MB, free: 47.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.926e-05/0.3392, allocations: 35.53 kB / 461.5 MB, free: 47.36 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3392, allocations: 0 / 461.5 MB, free: 47.36 MB / 382.1 MB Notification: Performance of Templates: time 0.009329/0.3485, allocations: 5.91 MB / 467.4 MB, free: 46.87 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: