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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001806/0.001806, allocations: 110.9 kB / 17.29 MB, free: 6.219 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.002357/0.002357, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.713/2.713, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4329/0.4329, allocations: 38.02 MB / 330 MB, free: 8.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002879/0.002879, allocations: 64.2 kB / 398.9 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2267, allocations: 58.07 MB / 457 MB, free: 8.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.01611/0.2429, allocations: 6.327 MB / 463.3 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008054/0.251, allocations: 2.294 MB / 465.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001138/0.2522, allocations: 35.75 kB / 465.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.2533, allocations: 151.2 kB / 465.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002262/0.2557, allocations: 378.2 kB / 466.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.2569, allocations: 223.6 kB / 466.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002132/0.2591, allocations: 0.8409 MB / 467.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001152/0.2603, allocations: 0.4928 MB / 467.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/0.2614, allocations: 342.7 kB / 468.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009931/0.2624, allocations: 354.5 kB / 468.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002339/0.2626, allocations: 56 kB / 468.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005052/0.2632, allocations: 104 kB / 468.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003475/0.2635, allocations: 179.5 kB / 468.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009223/0.2645, allocations: 306.5 kB / 469 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001182/0.2657, allocations: 0.5768 MB / 469.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.488e-06/0.2657, allocations: 0 / 469.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2657, allocations: 3.938 kB / 469.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.156e-05/0.2658, allocations: 0 / 469.6 MB, free: 11.72 MB / 350.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.003052/0.2688, allocations: 0.9019 MB / 470.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.003e-05/0.2689, allocations: 11.89 kB / 470.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002608/0.2692, allocations: 72.17 kB / 470.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001515/0.2707, allocations: 0.4903 MB / 471.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.899e-05/0.2708, allocations: 37 kB / 471.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002043/0.271, allocations: 43.94 kB / 471.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.2727, allocations: 0.525 MB / 471.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.374e-05/0.2727, allocations: 0 / 471.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.559e-05/0.2728, allocations: 20 kB / 471.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001373/0.273, allocations: 13 kB / 471.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.2741, allocations: 339.7 kB / 472.1 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00449/0.2786, allocations: 2.074 MB / 474.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006386/0.2793, allocations: 231.6 kB / 474.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/0.2795, allocations: 82.67 kB / 474.4 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.397e-05/0.2796, allocations: 4 kB / 474.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004122/0.28, allocations: 176.5 kB / 474.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 3.547e-06/0.28, allocations: 0 / 474.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.002784/0.2828, allocations: 0.9131 MB / 475.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.2829, allocations: 136.5 kB / 475.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007689/0.2837, allocations: 421.9 kB / 476.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.711e-05/0.2838, allocations: 33.7 kB / 476.1 MB, free: 4.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002944/0.2841, allocations: 299.8 kB / 476.4 MB, free: 4.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.2842, allocations: 90.73 kB / 476.5 MB, free: 4.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.2844, allocations: 74.05 kB / 476.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.2846, allocations: 362.7 kB / 476.9 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002503/0.2849, allocations: 84.83 kB / 477 MB, free: 3.914 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004107/0.2853, allocations: 221.8 kB / 477.2 MB, free: 3.633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006944/0.286, allocations: 320.1 kB / 477.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/0.286, allocations: 4 kB / 477.5 MB, free: 3.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001424/0.2875, allocations: 449.2 kB / 478 MB, free: 2.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.2875, allocations: 4 kB / 478 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.2876, allocations: 4.562 kB / 478 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006311/0.2882, allocations: 100.8 kB / 478.1 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004134/0.2886, allocations: 67.91 kB / 478.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00353/0.2922, allocations: 1.828 MB / 480 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006431/0.2928, allocations: 23.98 kB / 480 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.029e-05/0.2929, allocations: 20 kB / 480 MB, free: 0.6172 MB / 350.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 (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.0005387/0.2935, allocations: 201.8 kB / 480.2 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.2937, allocations: 51.38 kB / 480.3 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/0.2947, allocations: 282.1 kB / 480.5 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.2947, allocations: 4 kB / 480.5 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.2948, allocations: 0 / 480.5 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.729e-06/0.2948, allocations: 4 kB / 480.5 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00195/0.2967, allocations: 0.7786 MB / 481.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.2968, allocations: 0 / 481.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004323/0.2972, allocations: 55.84 kB / 481.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000333/0.2976, allocations: 48.81 kB / 481.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.2976, allocations: 8 kB / 481.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002446/0.3001, allocations: 1.543 MB / 483 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.3001, allocations: 0 / 483 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.3013, allocations: 486 kB / 483.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003385/0.3017, allocations: 132.6 kB / 483.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.3018, allocations: 11.94 kB / 483.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004218/0.3022, allocations: 15.98 kB / 483.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3024, allocations: 15.97 kB / 483.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.237e-05/0.3024, allocations: 12 kB / 483.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006601/0.3031, allocations: 299.1 kB / 483.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.154e-06/0.3031, allocations: 4 kB / 483.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009158/0.304, allocations: 111.9 kB / 484 MB, free: 12.33 MB / 366.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 (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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001491/0.3055, allocations: 406.2 kB / 484.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001392/0.3069, allocations: 414.7 kB / 484.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.3069, allocations: 0 / 484.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005865/0.3075, allocations: 238.5 kB / 485.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.3088, allocations: 136.3 kB / 485.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003995/0.3128, allocations: 1.426 MB / 486.6 MB, free: 9.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008702/0.3137, allocations: 0.8738 MB / 487.5 MB, free: 8.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002627/0.314, allocations: 39.44 kB / 487.5 MB, free: 8.879 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.314, allocations: 0 / 487.5 MB, free: 8.879 MB / 366.1 MB Notification: Performance of Templates: time 0.02222/0.3362, allocations: 8.805 MB / 496.4 MB, free: 100 kB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (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)