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 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_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.001834/0.001834, allocations: 111.8 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.00213/0.002131, 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.802/2.802, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.518/0.518, allocations: 38.02 MB / 330 MB, free: 8.922 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002832/0.002832, allocations: 63.98 kB / 398.9 MB, free: 34.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.2046, allocations: 58.07 MB / 457 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.01636/0.2211, allocations: 6.097 MB / 463.1 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006392/0.2275, allocations: 1.827 MB / 464.9 MB, free: 468 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00131/0.2289, allocations: 31.81 kB / 465 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.23, allocations: 111.3 kB / 465.1 MB, free: 324 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002511/0.2367, allocations: 286.5 kB / 465.3 MB, free: 36 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.2379, allocations: 135.8 kB / 465.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002039/0.2399, allocations: 0.6889 MB / 466.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.2411, allocations: 447.7 kB / 466.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005038/0.2462, allocations: 298.8 kB / 466.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001166/0.2474, allocations: 298.8 kB / 467.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002461/0.2477, allocations: 48 kB / 467.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002792/0.248, allocations: 48 kB / 467.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000341/0.2484, allocations: 151.6 kB / 467.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007137/0.2492, allocations: 270.7 kB / 467.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00111/0.2503, allocations: 471 kB / 468.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.171e-05/0.2503, allocations: 0 / 468.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.2504, allocations: 0 / 468.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.931e-05/0.2504, allocations: 0 / 468.2 MB, free: 13.21 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.003243/0.2537, allocations: 0.7853 MB / 468.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.444e-05/0.2538, allocations: 11.89 kB / 469 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004339/0.2581, allocations: 56.28 kB / 469 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001864/0.2601, allocations: 432 kB / 469.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002093/0.2603, allocations: 70.62 kB / 469.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000235/0.2606, allocations: 47.91 kB / 469.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006176/0.2668, allocations: 0.4931 MB / 470 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.611e-05/0.267, allocations: 11.97 kB / 470 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/0.2672, allocations: 16 kB / 470.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-05/0.2672, allocations: 12 kB / 470.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001782/0.269, allocations: 339.7 kB / 470.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009803/0.2789, allocations: 1.984 MB / 472.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008956/0.2798, allocations: 219.5 kB / 472.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003829/0.2803, allocations: 102.6 kB / 472.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.442e-05/0.2803, allocations: 4 kB / 472.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.169e-05/0.2804, allocations: 38.56 kB / 472.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 6.081e-06/0.2804, allocations: 0 / 472.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.007856/0.2883, allocations: 0.8341 MB / 473.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.2885, allocations: 115 kB / 473.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007423/0.2893, allocations: 329.6 kB / 474 MB, free: 6.961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.167e-05/0.2894, allocations: 29.7 kB / 474 MB, free: 6.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003273/0.2897, allocations: 279.5 kB / 474.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.2899, allocations: 74.91 kB / 474.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000196/0.2901, allocations: 69.56 kB / 474.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002254/0.2903, allocations: 342.8 kB / 474.8 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003785/0.2907, allocations: 83.95 kB / 474.9 MB, free: 6.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005049/0.2912, allocations: 221.1 kB / 475.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002245/0.2935, allocations: 0.5571 MB / 475.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/0.2935, allocations: 4 kB / 475.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001652/0.2952, allocations: 412.7 kB / 476.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.2953, allocations: 8 kB / 476.1 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/0.2953, allocations: 4 kB / 476.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005235/0.2958, allocations: 80.72 kB / 476.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004402/0.2963, allocations: 68.09 kB / 476.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008027/0.3043, allocations: 1.934 MB / 478.1 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005739/0.305, allocations: 24 kB / 478.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.116e-05/0.3051, allocations: 12.16 kB / 478.2 MB, free: 2.48 MB / 350.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.0005602/0.3057, allocations: 193.7 kB / 478.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.3058, allocations: 35.62 kB / 478.4 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001369/0.306, allocations: 43.23 kB / 478.4 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.306, allocations: 4 kB / 478.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.306, allocations: 0 / 478.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.79e-05/0.3061, allocations: 4 kB / 478.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002304/0.3084, allocations: 0.7764 MB / 479.2 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/0.3084, allocations: 4 kB / 479.2 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004356/0.3089, allocations: 43.97 kB / 479.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000167/0.3091, allocations: 24.89 kB / 479.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.3091, allocations: 7.984 kB / 479.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006126/0.3152, allocations: 1.379 MB / 480.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/0.3153, allocations: 4.031 kB / 480.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00173/0.3171, allocations: 0.512 MB / 481.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003344/0.3174, allocations: 116.8 kB / 481.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.3176, allocations: 8.078 kB / 481.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004927/0.3181, allocations: 12 kB / 481.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.3183, allocations: 27.95 kB / 481.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.729e-05/0.3184, allocations: 4 kB / 481.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005841/0.319, allocations: 239.1 kB / 481.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.319, allocations: 0 / 481.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001178/0.3202, allocations: 84 kB / 481.7 MB, free: 14.71 MB / 366.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.0002661/0.3205, allocations: 103.2 kB / 481.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005848/0.3263, allocations: 381.2 kB / 482.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.755e-05/0.3265, allocations: 5.188 kB / 482.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009087/0.3274, allocations: 214.6 kB / 482.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001561/0.329, allocations: 106 kB / 482.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003856/0.3329, allocations: 1.141 MB / 483.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008767/0.3338, allocations: 0.8426 MB / 484.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001612/0.334, allocations: 27.44 kB / 484.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of SimCode: time 1.353e-06/0.334, allocations: 0 / 484.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of Templates: time 0.02478/0.3588, allocations: 6.883 MB / 491.4 MB, free: 4.949 MB / 366.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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)